Skip to content

Commit

Permalink
Updated build script
Browse files Browse the repository at this point in the history
  • Loading branch information
RhetTbull committed Oct 13, 2023
1 parent 8ea99e8 commit 0df7b0e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ test -d build && rm -rf build/
echo "Running py2app"
python3 setup.py py2app

# TODO: this doesn't appear to be needed (only for sandboxed apps)
# py2app will sign the app with the ad-hoc certificate
# sign with ad-hoc certificate (if you have an Apple Developer ID, you can use your developer certificate instead)
# for the app to send AppleEvents to other apps, it needs to be signed and include the
# com.apple.security.automation.apple-events entitlement in the entitlements file
Expand All @@ -19,14 +21,15 @@ python3 setup.py py2app
# --options=runtime: Preserve the hardened runtime version
# --entitlements: use specified the entitlements file
# -s -: sign the code at the path(s) given using this identity; "-" means use the ad-hoc certificate
echo "Signing with codesign"
codesign \
--force \
--deep \
--options=runtime \
--entitlements=script.entitlements entitlements.plist \
-s - \
dist/Textinator.app
# echo "Signing with codesign"
# codesign \
# --force \
# --deep \
# --options=runtime \
# --preserve-metadata=identifier,entitlements,flags,runtime \
# --entitlements=entitlements.plist \
# -s - \
# dist/Textinator.app

# create installer DMG
# to add a background image to the DMG, add the following to the create-dmg command:
Expand Down

0 comments on commit 0df7b0e

Please sign in to comment.