mirror of
https://github.com/davidkaya/aryx.git
synced 2026-07-25 05:58:39 +02:00
Switch from NSIS (early 2000s) to Inno Setup 6 — the modern standard used by VS Code and most Electron apps. Features: - Modern wizard UI (WizardStyle=modern) - LZMA2/ultra64 solid compression (138.9 MB, down from 143 MB with NSIS) - Per-user install to %LOCALAPPDATA%\Programs\Aryx (no admin needed) - Optional desktop shortcut, Start Menu group - Auto-closes running instance before install/uninstall - Proper Add/Remove Programs integration via AppId - Launch-after-install option CI updated to install Inno Setup via Chocolatey on windows-latest. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
159 lines
4.1 KiB
YAML
159 lines
4.1 KiB
YAML
name: CI and release
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
tags:
|
|
- '*'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
validate:
|
|
name: Validate (${{ matrix.label }})
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: windows-latest
|
|
label: Windows
|
|
- os: macos-15-intel
|
|
label: macOS (x64)
|
|
- os: macos-15
|
|
label: macOS (arm64)
|
|
- os: ubuntu-latest
|
|
label: Linux
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: 1.3.6
|
|
|
|
- name: Set up .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 9.0.x
|
|
|
|
- name: Install Linux native dependencies
|
|
if: runner.os == 'Linux'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libsecret-1-dev
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Run web tests
|
|
run: bun run test
|
|
|
|
- name: Run sidecar tests
|
|
run: bun run sidecar:test
|
|
|
|
- name: Build the application
|
|
run: bun run build
|
|
|
|
create-release:
|
|
name: Create GitHub release
|
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
needs: validate
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Create release if needed
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
TAG_NAME: ${{ github.ref_name }}
|
|
run: |
|
|
if gh release view "$TAG_NAME" >/dev/null 2>&1; then
|
|
echo "Release $TAG_NAME already exists."
|
|
else
|
|
gh release create "$TAG_NAME" --title "$TAG_NAME" --generate-notes
|
|
fi
|
|
|
|
publish-release-assets:
|
|
name: Publish release asset (${{ matrix.label }})
|
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
needs: create-release
|
|
runs-on: ${{ matrix.os }}
|
|
permissions:
|
|
contents: write
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: windows-latest
|
|
label: Windows
|
|
release_dir_name: Aryx-windows-x64
|
|
asset_path: release/Aryx-windows-x64-setup.exe
|
|
- os: macos-15-intel
|
|
label: macOS (x64)
|
|
release_dir_name: Aryx-macos-x64
|
|
asset_path: release/Aryx-macos-x64.dmg
|
|
- os: macos-15
|
|
label: macOS (arm64)
|
|
release_dir_name: Aryx-macos-arm64
|
|
asset_path: release/Aryx-macos-arm64.dmg
|
|
- os: ubuntu-latest
|
|
label: Linux
|
|
release_dir_name: Aryx-linux-x64
|
|
asset_path: release/aryx-linux-x64.deb
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: 1.3.6
|
|
|
|
- name: Set up .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 9.0.x
|
|
|
|
- name: Install Linux native dependencies
|
|
if: runner.os == 'Linux'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libsecret-1-dev
|
|
|
|
- name: Install Inno Setup
|
|
if: runner.os == 'Windows'
|
|
shell: pwsh
|
|
run: choco install innosetup -y --no-progress
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Package current platform
|
|
run: bun run package
|
|
|
|
- name: Ad-hoc sign macOS app bundle
|
|
if: runner.os == 'macOS'
|
|
run: codesign --force --deep --sign - "release/${{ matrix.release_dir_name }}/Aryx.app"
|
|
|
|
- name: Create platform installer
|
|
run: bun run scripts/create-installer.ts
|
|
|
|
- name: Upload asset to GitHub release
|
|
shell: bash
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
TAG_NAME: ${{ github.ref_name }}
|
|
ASSET_PATH: ${{ matrix.asset_path }}
|
|
run: gh release upload "$TAG_NAME" "$ASSET_PATH" --clobber
|