Skip to content

Commit

Permalink
Purge symlinks from the bundle so that the code sign is accepted.
Browse files Browse the repository at this point in the history
  • Loading branch information
lordofhyphens committed Aug 23, 2020
1 parent 0ed96db commit 4a7090f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package/osx/make_dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ find -d $macosfolder/local-lib -name libwx_osx_cocoau_webview-3.* -delete
rm -rf $macosfolder/local-lib/lib/perl5/darwin-thread-multi-2level/Alien/wxWidgets/osx_cocoa_3_0_2_uni/include
find -d $macosfolder/local-lib -type d -empty -delete

# remove wxrc
rm -rf $macosfolder/local-lib/lib/perl5/darwin-thread-multi-2level/Alien/wxWidgets/osx_cocoa_3_0_2_uni/bin/wxrc*

# Apparently the symlinks aren't necessary, remove because they are causing the system to choke
find $macosfolder/local-lib/lib/perl5/darwin-thread-multi-2level/Alien/wxWidgets/osx_cocoa_3_0_2_uni -type l -exec rm {} \; -print

make_plist

echo $PkgInfoContents >$appfolder/Contents/PkgInfo
Expand Down Expand Up @@ -212,7 +218,7 @@ if [ ! -z $KEYCHAIN_FILE_ ]; then
security list-keychains -s "${KEYCHAIN_FILE_}"
security default-keychain -s "${KEYCHAIN_FILE_}"
security unlock-keychain -p "${KEYCHAIN_PASSWORD_}" "${KEYCHAIN_FILE_}"
codesign --sign "${KEYCHAIN_IDENTITY_}" --deep "$appfolder"
codesign --sign "${KEYCHAIN_IDENTITY_}" --strict --deep "$appfolder"
else
echo "No KEYCHAIN_FILE or KEYCHAIN_BASE64 env variable; skipping codesign"
fi
Expand All @@ -229,7 +235,7 @@ if [ ! -z $KEYCHAIN_FILE_ ]; then
security list-keychains -s "${KEYCHAIN_FILE_}"
security default-keychain -s "${KEYCHAIN_FILE_}"
security unlock-keychain -p "${KEYCHAIN_PASSWORD_}" "${KEYCHAIN_FILE_}"
codesign --sign "${KEYCHAIN_IDENTITY_}" "$dmgfile"
codesign --sign "${KEYCHAIN_IDENTITY_}" --strict "$dmgfile"
fi

rm -rf $WD/_tmp

0 comments on commit 4a7090f

Please sign in to comment.