summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2020-11-04 17:34:00 -0800
committerMicah Lee <micah@micahflee.com>2020-11-04 17:34:00 -0800
commit654611f1e4e44ddf1370882c15123e36adb1a450 (patch)
tree546ea463994a40fa83ca72a82100e8de7879b5eb /desktop
parent4f0154d6981d393d454255c2f8468d2023b2e601 (diff)
downloadonionshare-654611f1e4e44ddf1370882c15123e36adb1a450.tar.gz
onionshare-654611f1e4e44ddf1370882c15123e36adb1a450.zip
Write macOS package script, to codesign child binaries
Diffstat (limited to 'desktop')
-rwxr-xr-xdesktop/install/macos_package.sh25
-rw-r--r--desktop/install/macos_sandbox/ChildEntitlements.plist (renamed from desktop/install/macos_sandbox/child.plist)0
-rw-r--r--desktop/install/macos_sandbox/Entitlements.plist (renamed from desktop/install/macos_sandbox/parent.plist)0
3 files changed, 25 insertions, 0 deletions
diff --git a/desktop/install/macos_package.sh b/desktop/install/macos_package.sh
new file mode 100755
index 00000000..44c42ca8
--- /dev/null
+++ b/desktop/install/macos_package.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+export DEVELOPER_ID="Developer ID Application: Micah Lee (N9B95FDWH4)"
+
+# Cleanb up from the last build
+rm -rf macOS
+briefcase create
+
+# Codesign the child binaries
+codesign --sign "$DEVELOPER_ID" \
+ --entitlements install/macos_sandbox/ChildEntitlements.plist \
+ macOS/OnionShare/OnionShare.app/Contents/Resources/app/onionshare/resources/tor/tor \
+ --force --options runtime
+codesign --sign "$DEVELOPER_ID" \
+ --entitlements install/macos_sandbox/ChildEntitlements.plist \
+ macOS/OnionShare/OnionShare.app/Contents/Resources/app/onionshare/resources/tor/libevent-2.1.7.dylib \
+ --force --options runtime
+codesign --sign "$DEVELOPER_ID" \
+ --entitlements install/macos_sandbox/ChildEntitlements.plist \
+ macOS/OnionShare/OnionShare.app/Contents/Resources/app/onionshare/resources/tor/obfs4proxy \
+ --force --options runtime
+
+# Build and codesign the app bundle and dmg
+cp install/macos_sandbox/Entitlements.plist macOS/OnionShare/
+briefcase package -i "$DEVELOPER_ID"
diff --git a/desktop/install/macos_sandbox/child.plist b/desktop/install/macos_sandbox/ChildEntitlements.plist
index 06d88f66..06d88f66 100644
--- a/desktop/install/macos_sandbox/child.plist
+++ b/desktop/install/macos_sandbox/ChildEntitlements.plist
diff --git a/desktop/install/macos_sandbox/parent.plist b/desktop/install/macos_sandbox/Entitlements.plist
index 8b9ac949..8b9ac949 100644
--- a/desktop/install/macos_sandbox/parent.plist
+++ b/desktop/install/macos_sandbox/Entitlements.plist