mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-14 00:39:33 -05:00
26 lines
1009 B
Bash
Executable File
26 lines
1009 B
Bash
Executable File
#!/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"
|