File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,21 @@ addons:
1818 - fakeroot
1919 - rpm
2020
21+ before_script :
22+ - >
23+ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
24+ export CERTIFICATE_P12=certificates/Certificate.p12;
25+ echo $CERTIFICATE_OSX_P12 | base64 --decode > $CERTIFICATE_P12;
26+ export KEYCHAIN=httptoolkit-build.keychain;
27+ export KEYCHAIN_PASSWORD=mysupersecretpassword
28+ security create-keychain -p $KEYCHAIN_PASSWORD $KEYCHAIN;
29+ security default-keychain -s $KEYCHAIN;
30+ security unlock-keychain -p $KEYCHAIN_PASSWORD $KEYCHAIN;
31+ security set-keychain-settings -t 3600 -u $KEYCHAIN
32+ security import $CERTIFICATE_P12 -k $KEYCHAIN -P $CERTIFICATE_OSX_PASSWORD -T /usr/bin/codesign;
33+ security set-key-partition-list -S apple-tool:,apple: -s -k $KEYCHAIN_PASSWORD $KEYCHAIN
34+ fi
35+
2136script :
2237- npm run make
2338
Original file line number Diff line number Diff line change 4141 ],
4242 "afterCopy" : [
4343 " ./src/after-copy.js"
44- ]
44+ ],
45+ "appBundleId" : " tech.httptoolkit.desktop" ,
46+ "appCategoryType" : " public.app-category.developer-tools" ,
47+ "osxSign" : {
48+ "keychain" : " httptoolkit-build.keychain"
49+ }
4550 },
4651 "electronWinstallerConfig" : {
4752 "name" : " httptoolkit" ,
You can’t perform that action at this time.
0 commit comments