summaryrefslogtreecommitdiff
path: root/desktop/install/macos_package.sh
blob: 44c42ca89ba6afe41cf9e8b965867a2eef3d1738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"