-
Notifications
You must be signed in to change notification settings - Fork 0
/
pack.sh
executable file
·25 lines (16 loc) · 1.06 KB
/
pack.sh
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
#!/usr/bin/env bash
set -e
app_dir=deploy/darwin/build/DadJokes.app
identity=""
entitlements="deploy/darwin/DadJokes.app/Contents/Resources/entitlements.plist"
rm -rf "${app_dir}"
npx nodegui-packer --pack dist
echo " ### Signing"
codesign --verbose=4 --strict --timestamp --sign "${identity}" --entitlements "${entitlements}" --options "runtime" ${app_dir}/Contents/Frameworks/*.framework
codesign --verbose=4 --strict --timestamp --sign "${identity}" --entitlements "${entitlements}" --options "runtime" ${app_dir}/Contents/PlugIns/*/*.dylib
codesign --verbose=4 --strict --timestamp --sign "${identity}" --entitlements "${entitlements}" --options "runtime" ${app_dir}/Contents/Resources/dist/*.node
codesign --verbose=4 --strict --timestamp --sign "${identity}" --entitlements "${entitlements}" --options "runtime" ${app_dir}/Contents/MacOS/qode.json
codesign --verbose=4 --strict --timestamp --sign "${identity}" --entitlements "${entitlements}" --options "runtime" ${app_dir}
echo "### Verifying"
codesign --verify --deep --verbose=4 "${app_dir}"
spctl -a -vvvv "${app_dir}"