From be1be2c9aefe2d7dbe32ef5a168c3289d5de87db Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Tue, 18 Aug 2026 22:22:51 +0930 Subject: [PATCH] docs(release): document repository and signing setup --- .github/SETUP.md | 72 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 .github/SETUP.md diff --git a/.github/SETUP.md b/.github/SETUP.md new file mode 100644 index 0000000..e29d0e1 --- /dev/null +++ b/.github/SETUP.md @@ -0,0 +1,72 @@ +# Repository and release setup + +## Repository owner + +The desktop updater publishes releases for `Formsmith746/SketchForge-3D`. + +Keep these values in `apps/desktop/electron-builder.yml`: + +```yaml +publish: + provider: github + owner: Formsmith746 + repo: SketchForge-3D +``` + +The Git remote can use another account or mirror. The `publish.owner` value must match the repository that hosts the release assets. + +## GitHub Actions permissions + +The `Desktop Release` workflow needs permission to create tags and upload release assets. + +Set the repository workflow permission to **Read and write permissions** under: + +`Settings` → `Actions` → `General` → `Workflow permissions` + +The workflow also declares: + +```yaml +permissions: + contents: write +``` + +## Create a release + +Push a tag such as `v1.0.4`, or run `Desktop Release` with `workflow_dispatch` and enter `1.0.4`. + +The workflow builds these packages: + +- Windows NSIS installer +- Linux AppImage +- macOS universal DMG +- macOS universal ZIP + +The macOS ZIP and `latest-mac.yml` file are required by `electron-updater`. + +## macOS signing and notarization + +The macOS job reads these repository secrets: + +- `CSC_LINK`: base64-encoded Developer ID Application certificate +- `CSC_KEY_PASSWORD`: certificate password +- `APPLE_API_KEY`: App Store Connect API private key path +- `APPLE_API_KEY_ID`: App Store Connect API key ID +- `APPLE_API_ISSUER`: App Store Connect API issuer ID + +When all signing and Apple notarization variables are present, the macOS artifacts use their normal names: + +```text +SketchForge-VERSION-universal.dmg +SketchForge-VERSION-universal.zip +``` + +When one or more signing or Apple notarization variables are missing, the workflow marks the packages as unsigned: + +```text +SketchForge-VERSION-universal-unsigned.dmg +SketchForge-VERSION-universal-unsigned.zip +``` + +Unsigned packages trigger a Gatekeeper warning. Add the signing and notarization secrets before public distribution. + +Do not commit certificates, private keys, or passwords.