Skip to content

Commit d41eca5

Browse files
committed
Fixing symbolic link for emojis, and adding custom entitlements (trying to get past some errors with @rpath and @executablepath caused by the hardened runtime)
1 parent 98f8982 commit d41eca5

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

installer/build-mac-dmg.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ echo "Symlink Non-Code Files to Resources"
3131
mv "$OS_PATH/MacOS/blender" "$OS_PATH/Resources/blender"; ln -s "../Resources/blender" "$OS_PATH/MacOS/blender";
3232
mv "$OS_PATH/MacOS/classes" "$OS_PATH/Resources/classes"; ln -s "../Resources/classes" "$OS_PATH/MacOS/classes";
3333
mv "$OS_PATH/MacOS/effects" "$OS_PATH/Resources/effects"; ln -s "../Resources/effects" "$OS_PATH/MacOS/effects";
34+
mv "$OS_PATH/MacOS/emojis" "$OS_PATH/Resources/emojis"; ln -s "../Resources/emojis" "$OS_PATH/MacOS/emojis";
3435
mv "$OS_PATH/MacOS/images" "$OS_PATH/Resources/images"; ln -s "../Resources/images" "$OS_PATH/MacOS/images";
3536
mv "$OS_PATH/MacOS/language" "$OS_PATH/Resources/language"; ln -s "../Resources/language" "$OS_PATH/MacOS/language";
3637
mv "$OS_PATH/MacOS/presets" "$OS_PATH/Resources/presets"; ln -s "../Resources/presets" "$OS_PATH/MacOS/presets";
@@ -54,10 +55,10 @@ if [ -d "$OS_PATH/MacOS/python3.6" ]; then
5455
fi
5556

5657
echo "Loop through bundled files and sign all binary files"
57-
find "build" \( -iname '*.dylib' -o -iname '*.so' \) -exec codesign -s "OpenShot Studios, LLC" --timestamp=http://timestamp.apple.com/ts01 --force "{}" \;
58+
find "build" \( -iname '*.dylib' -o -iname '*.so' \) -exec codesign -s "OpenShot Studios, LLC" --timestamp=http://timestamp.apple.com/ts01 --entitlements "openshot.entitlements" --force "{}" \;
5859

5960
echo "Code Sign App Bundle (deep)"
60-
codesign -s "OpenShot Studios, LLC" --force --deep --options runtime --timestamp=http://timestamp.apple.com/ts01 "build/$OS_APP_NAME"
61+
codesign -s "OpenShot Studios, LLC" --force --deep --entitlements "openshot.entitlements" --options runtime --timestamp=http://timestamp.apple.com/ts01 "build/$OS_APP_NAME"
6162

6263
echo "Verifying App Signing"
6364
spctl -a -vv "build/$OS_APP_NAME"
@@ -66,7 +67,7 @@ echo "Building Custom DMG"
6667
appdmg "installer/dmg-template.json" "build/$OS_DMG_NAME"
6768

6869
echo "Code Sign DMG"
69-
codesign -s "OpenShot Studios, LLC" --force --timestamp=http://timestamp.apple.com/ts01 "build/$OS_DMG_NAME"
70+
codesign -s "OpenShot Studios, LLC" --force --entitlements "openshot.entitlements" --timestamp=http://timestamp.apple.com/ts01 "build/$OS_DMG_NAME"
7071

7172
echo "Notarize DMG file (send to apple)"
7273
# No errors uploading '/Users/jonathan/builds/7d5103a1/0/OpenShot/openshot-qt/build/test.zip'.

installer/openshot.entitlements

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<plist version="1.0">
2+
<dict>
3+
<key>com.apple.security.cs.disable-library-validation</key>
4+
<true/>
5+
<key>com.apple.security.get-task-allow</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)