Files
fellakte/.github/workflows/build-mac.yml
T

37 lines
1.0 KiB
YAML

# Builds an unsigned Fellakte.dmg on a real Mac (GitHub-hosted runner), since
# electron-builder refuses to build macOS targets on Windows/Linux. Unsigned means
# Gatekeeper will show an "unbekannter Entwickler" warning on first launch — see the
# README section this workflow's summary points to for the one-time workaround.
name: Build macOS installer
on:
workflow_dispatch: {} # "Run workflow" button on the Actions tab, whenever needed
push:
tags:
- "v*" # also builds automatically when a version tag like v0.8.0 is pushed
jobs:
build-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Build .dmg (unsigned)
env:
CSC_IDENTITY_AUTO_DISCOVERY: "false"
run: npm run dist:mac
- name: Upload .dmg
uses: actions/upload-artifact@v4
with:
name: Fellakte-mac
path: dist/*.dmg
retention-days: 30