Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit ceb6f62

Browse files
committed
Add build-mac.sh
1 parent af6d23d commit ceb6f62

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

build-mac.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
export CERT=certs/osx.p12;
2+
export CSC_LINK=$CERT;
3+
export NOTARIZE=false;
4+
5+
export CSC_KEY_PASSWORD=$PASSWORD;
6+
export CSC_KEYCHAIN=ganache.ui.build.keychain;
7+
export KEYCHAIN_PASS=$RANDOM.$RANDOM.$RANDOM;
8+
security delete-keychain $CSC_KEYCHAIN;
9+
10+
security create-keychain -p $KEYCHAIN_PASS $CSC_KEYCHAIN;
11+
security default-keychain -s $CSC_KEYCHAIN;
12+
security unlock-keychain -p $KEYCHAIN_PASS $CSC_KEYCHAIN;
13+
security import $CERT -k $CSC_KEYCHAIN -P $CSC_KEY_PASSWORD -T /usr/bin/codesign;
14+
security set-keychain-settings $CSC_KEYCHAIN;
15+
16+
echo "Setting key partition list";
17+
security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k $KEYCHAIN_PASS $CSC_KEYCHAIN;
18+
19+
npm run build-mac
20+
unset CERT;

0 commit comments

Comments
 (0)