Skip to content

Commit

Permalink
Add entitlements
Browse files Browse the repository at this point in the history
  • Loading branch information
khrykin committed Apr 16, 2020
1 parent 60ca160 commit 626f2e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/macos_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version=$2
app_name="Strategr"
dmg_path="$build_path/$app_name.v$version.dmg"
dmg_template_path="$build_path/../../../deployment/package.dmg"
#entitlements_path="$build_path/../../../deployment/Strategr.entitlements"
entitlements_path="$build_path/../../../deployment/Strategr.entitlements"
dmg_source_path="./DMGContainer"
app_bundle_path="$build_path/$app_name.app"

Expand All @@ -30,6 +30,7 @@ codesign --deep --force --verify --verbose -s "$DEVELOPER_CERTIFACATE_ID" \
"$app_bundle_path/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app"

codesign --deep --force --verify --verbose -s "$DEVELOPER_CERTIFACATE_ID" \
--entitlements "$entitlements_path" \
--options runtime \
--keychain "$HOME/Library/Keychains/login.keychain" \
"$app_bundle_path"
Expand Down
9 changes: 9 additions & 0 deletions scripts/macos_package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
build_path=$1
version=$2
app_name="Strategr"

echo "Creating updater archive"
cd "$build_path" || exit
zip -r --symlinks "$app_name.macOS.v$version.zip" "$app_name.app"
echo "Updater archive created"

0 comments on commit 626f2e7

Please sign in to comment.