Add codesigning certificate step

This commit is contained in:
Shelley Vohr
2024-02-06 11:48:10 +01:00
parent a320436ead
commit bc36c67fa0

View File

@@ -509,24 +509,8 @@ jobs:
unzip -:o dist.zip
unzip -:o chromedriver.zip
unzip -:o mksnapshot.zip
# - name: Import & Trust Self-Signed Codesigning Cert on MacOS
# run: |
# sudo security authorizationdb write com.apple.trust-settings.admin allow
# cd src/electron
# ./script/codesign/generate-identity.sh
# TODO(vertedinde): Does GHA support test-splitting?
# - name: Run Electron tests
# env:
# MOCHA_REPORTER: mocha-multi-reporters
# ELECTRON_TEST_RESULTS_DIR: junit
# MOCHA_MULTI_REPORTERS: mocha-junit-reporter, tap
# ELECTRON_DISABLE_SECURITY_WARNINGS: 1
# run: |
# cd src
# if [ "$TARGET_ARCH" == "arm" ] || [ "$TARGET_ARCH" == "arm64" ]; then
# export ELECTRON_SKIP_NATIVE_MODULE_TESTS=true
# fi
# cd electron
# e test
# # (cd electron && (circleci tests glob "spec/*-spec.ts" | xargs -I@ -P4 bash -c "echo $(pwd)/@" | circleci tests run --command="xargs node script/yarn test --runners=main --trace-uncaught --enable-logging --files" --split-by=timings))
- name: Import & Trust Self-Signed Codesigning Cert on MacOS
run: |
sudo security authorizationdb write com.apple.trust-settings.admin allow
cd src/electron
./script/codesign/generate-identity.sh