Files
miniSCP/.gitea/workflows/release.yml
JokinandClaude Fable 5 2585dd128b Multi-arch release script + Gitea workflow; retire legacy BunSCP name
bun run release -- --target mac-arm64|mac-x64|win-x64: gen version/icons,
build UI, electrobun build --env=stable, collect artifacts as
release/<target>/miniSCP-Build<n>-<target>.*. mac-x64 builds on the
arm64 Mac by running electrobun's x64 CLI under Rosetta 2 (verified:
x86_64 launcher in the produced app). Windows also zips a portable
build next to the Setup installer. Tag-triggered Gitea Actions matrix
included, inert until runners exist. legacyNames emptied — the BunSCP
migration has served its purpose.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 00:25:10 +02:00

47 lines
1.5 KiB
YAML

# Release matrix — INERT until act_runner instances with these labels are
# registered on git.teknes.es. Each OS builds its own artifacts (electrobun
# cannot cross-compile: packaging needs codesign/hdiutil on macOS and
# rcedit/PowerShell on Windows).
#
# Runner prerequisites:
# macos — arm64 Mac: bun, Xcode CLT, Rosetta 2 (softwareupdate
# --install-rosetta), network to github.com (electrobun downloads
# its per-arch core binaries on first build)
# windows — Windows 11 x64: bun, network to github.com; WebView2 runtime is
# preinstalled on Win 11
#
# Trigger: push a tag like build-62 (git tag build-$(git rev-list --count HEAD)).
name: release
on:
push:
tags:
- "build-*"
jobs:
mac:
runs-on: macos
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # full history — the build number is the commit count
- run: bun install --frozen-lockfile
- run: bun scripts/release.ts --target mac-arm64
- run: bun scripts/release.ts --target mac-x64
- uses: actions/upload-artifact@v3
with:
name: mac
path: release/**
windows:
runs-on: windows
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: bun install --frozen-lockfile
- run: bun scripts/release.ts --target win-x64
- uses: actions/upload-artifact@v3
with:
name: windows
path: release/**