Files
snapcad-studio/.github/SETUP.md
T

73 lines
2.0 KiB
Markdown

# 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.