Skip to content

Commit

Permalink
Use anonymous (AKA default) cert by default on macos code sign
Browse files Browse the repository at this point in the history
  • Loading branch information
xylix committed Mar 3, 2020
1 parent e85d917 commit f6fa30c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ dist/ActivityWatch.dmg: dist/ActivityWatch.app
# Don't try to run this outside CI, it causes messes in your macos keychain
codesign-dmg: dist/ActivityWatch.dmg
./scripts/ci/import-macos-p12.sh
codesign --verbose -s "aw_certificate" --deep dist/ActivityWatch.dmg
codesign --verbose -s aw_certificate --deep dist/ActivityWatch.dmg

package:
mkdir -p dist/activitywatch
Expand Down
4 changes: 2 additions & 2 deletions scripts/ci/import-macos-p12.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
# Source: https://www.update.rocks/blog/osx-signing-with-travis/
export KEY_CHAIN=aw-build.keychain
export CERTIFICATE_P12="aw_certificate"
export KEY_CHAIN=build.keychain
export CERTIFICATE_P12=aw_certificate

# Recreate the certificate from the secure environment variable
echo $CERTIFICATE_OSX_P12 | base64 --decode > $CERTIFICATE_P12
Expand Down

0 comments on commit f6fa30c

Please sign in to comment.