* Fix fpcalc / AcoustID support for the sandbox

... 16 FUCKING HOURS OF MY LIFE I WILL NEVER GET BACK FUCK FUCK FUCK
This commit is contained in:
Reinhard Pointner 2014-07-31 07:16:57 +00:00
parent f7848f52f3
commit 15b4695c20
4 changed files with 49 additions and 0 deletions

View File

@ -305,6 +305,25 @@
<argument value="--log-file" />
<argument value="filebot.log" />
</bundleapp>
<!-- fix permissions -->
<chmod verbose="true" dir="${dir.dist}" includes="**/fpcalc" perm="755" />
<!-- sign cmdline tool first -->
<exec dir="${dir.dist}" executable="codesign">
<arg line="--verbose=4 --sign '-' --entitlements '${dir.installer}/appbundle/fpcalc.entitlements' --prefix net.filebot.tools -i org.acoustid.fpcalc FileBot.app/Contents/MacOS/fpcalc" />
</exec>
<!-- sign app with entitlements -->
<exec dir="${dir.dist}" executable="codesign">
<arg line="--verbose=4 --deep --sign '-' --entitlements '${dir.installer}/appbundle/FileBot.entitlements' FileBot.app" />
</exec>
<!-- verify signature -->
<exec dir="${dir.dist}" executable="codesign" failonerror="on">
<arg line=" --verbose=4 --verify --deep FileBot.app" />
</exec>
</target>

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.bookmarks.app-scope</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.files.downloads.read-write</key>
<true/>
<key>com.apple.security.assets.movies.read-write</key>
<true/>
<key>com.apple.security.assets.music.read-write</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.inherit</key>
<true/>
</dict>
</plist>