Skip to content

Commit b9cd792

Browse files
committed
ci: add ad-hoc app signature for macos target
Newer macos versions are pretty strict about executing unsigned software and are occasionally stopping compiled artifacts execution for this reason. With this change the CI flow signs the artifact, fixing the issue.
1 parent 97c3bb7 commit b9cd792

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,15 @@ jobs:
145145
./scripts/github-ci.sh qt-osx;
146146
env:
147147
OS_NAME: osx
148+
- name: Ad-hoc sign BitBox.app
149+
run: |
150+
APP_PATH="$(go env GOPATH)/src/github.com/BitBoxSwiss/bitbox-wallet-app/frontends/qt/build/osx/BitBox.app"
151+
echo "Signing app at $APP_PATH"
152+
codesign --deep --force --verbose --sign - "$APP_PATH"
153+
- name: Verify BitBox.app signature
154+
run: |
155+
APP_PATH="$(go env GOPATH)/src/github.com/BitBoxSwiss/bitbox-wallet-app/frontends/qt/build/osx/BitBox.app"
156+
codesign --verify --deep --strict --verbose=2 "$APP_PATH"
148157
- name: Archive app
149158
run: >
150159
pushd ~/go/src/github.com/BitBoxSwiss/bitbox-wallet-app/frontends/qt/build/osx;

0 commit comments

Comments
 (0)