CONTRIBUTING: Add info for macOS ad-hoc signing

This commit is contained in:
ayumi-signal 2024-07-11 09:55:11 -07:00 committed by GitHub
parent be5829baaa
commit 328117cecf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 0 deletions

View File

@ -265,3 +265,22 @@ npm run build
```
Then, run the tests using `npm run test-release`.
### Testing MacOS builds
macOS requires apps to be code signed with an Apple certificate. To test development builds
you can ad-hoc sign the packaged app which will let you run it locally.
1. In `package.json` remove the macOS signing script: `"sign": "./ts/scripts/sign-macos.js",`
2. Build the app and ad-hoc sign the app bundle:
```
npm run generate
npm run build
cd release
# Pick the desired app bundle: mac, mac-arm64, or mac-universal
cd mac-arm64
codesign --force --deep --sign - Signal.app
```
3. Now you can run the app locally.