name: Release on: push: tags: - "v*" permissions: contents: read jobs: build-windows: runs-on: windows-latest outputs: signed: ${{ steps.windows_signed.outputs.signed }} steps: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 - name: Resolve release tag id: release_tag shell: pwsh run: | $tag = "${env:GITHUB_REF_NAME}" if ($tag -notmatch '^v\d+\.\d+\.\d+$') { throw "Invalid tag '$tag'. Expected format: vX.Y.Z" } $version = $tag.Substring(1) "tag=$tag" >> $env:GITHUB_OUTPUT "version=$version" >> $env:GITHUB_OUTPUT - name: Setup Node uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version: 22 run-install: false - name: Setup Rust uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable branch, pinned 2026-06-09 - name: Install the bundler run: corepack pnpm install --frozen-lockfile - name: Validate versions against tag shell: pwsh run: | $tag = "${{ steps.release_tag.outputs.version }}" $packageVersion = (Get-Content package.json -Raw | ConvertFrom-Json).version $tauriVersion = (Get-Content crates/accshift-egui/tauri.conf.json -Raw | ConvertFrom-Json).version $metadata = cargo metadata --no-deps --format-version 1 | ConvertFrom-Json $cargoPackage = $metadata.packages | Where-Object { $_.name -eq "accshift-egui" } | Select-Object -First 1 if (-not $cargoPackage) { throw "Could not resolve accshift-egui version from cargo metadata" } $cargoVersion = $cargoPackage.version if ($packageVersion -ne $tag -or $tauriVersion -ne $tag -or $cargoVersion -ne $tag) { throw "Version mismatch. tag=$tag package.json=$packageVersion tauri.conf.json=$tauriVersion Cargo.toml=$cargoVersion" } - name: Validate updater signing key secret shell: pwsh env: TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} run: | if ([string]::IsNullOrWhiteSpace($env:TAURI_SIGNING_PRIVATE_KEY)) { throw "Missing GitHub secret TAURI_SIGNING_PRIVATE_KEY. Auto-update artifacts cannot be signed." } - name: Validate telemetry endpoint shell: pwsh env: ACCSHIFT_TELEMETRY_URL: ${{ vars.ACCSHIFT_TELEMETRY_URL }} run: | if ([string]::IsNullOrWhiteSpace($env:ACCSHIFT_TELEMETRY_URL)) { throw "Missing GitHub variable ACCSHIFT_TELEMETRY_URL. Official builds must not use the inert fallback." } $uri = $null if (-not [Uri]::TryCreate($env:ACCSHIFT_TELEMETRY_URL, [UriKind]::Absolute, [ref]$uri) -or $uri.Scheme -ne "https" -or [string]::IsNullOrWhiteSpace($uri.Host) -or -not [string]::IsNullOrEmpty($uri.UserInfo) -or -not [string]::IsNullOrEmpty($uri.Query) -or -not [string]::IsNullOrEmpty($uri.Fragment) -or $env:ACCSHIFT_TELEMETRY_URL -ne $env:ACCSHIFT_TELEMETRY_URL.Trim() -or $env:ACCSHIFT_TELEMETRY_URL.EndsWith('/')) { throw "ACCSHIFT_TELEMETRY_URL must be an HTTPS base URL without credentials, query, fragment, or trailing slash." } - name: Build the GUI and the CLI env: ACCSHIFT_TELEMETRY_URL: ${{ vars.ACCSHIFT_TELEMETRY_URL }} run: cargo build --release --locked -p accshift-egui -p accshift-cli # Authenticode through SignPath (see "Code signing policy" in the README) # once the SIGNPATH_ORGANIZATION_ID variable and the SIGNPATH_API_TOKEN # secret exist; until then the release stays unsigned, as before. Each # request waits for a manual approval in SignPath, the binaries first so # the installer packs signed files, then the installer itself. The # artifact configurations live in .signpath/artifact-configurations. - name: Upload the binaries to sign id: unsigned_binaries if: vars.SIGNPATH_ORGANIZATION_ID != '' uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: unsigned-binaries if-no-files-found: error path: | target/release/accshift-egui.exe target/release/accshift.exe - name: Sign the binaries if: vars.SIGNPATH_ORGANIZATION_ID != '' uses: signpath/github-action-submit-signing-request@f6d04783b4569d051e0c80105fe66e82819d0092 # v3.0 with: api-token: ${{ secrets.SIGNPATH_API_TOKEN }} organization-id: ${{ vars.SIGNPATH_ORGANIZATION_ID }} project-slug: accshift signing-policy-slug: release-signing artifact-configuration-slug: binaries github-artifact-id: ${{ steps.unsigned_binaries.outputs.artifact-id }} parameters: | version: "${{ steps.release_tag.outputs.version }}" wait-for-completion-timeout-in-seconds: 7200 output-artifact-directory: signed/binaries - name: Use the signed binaries if: vars.SIGNPATH_ORGANIZATION_ID != '' shell: pwsh run: | foreach ($name in "accshift-egui.exe", "accshift.exe") { $signed = "signed/binaries/$name" if ((Get-AuthenticodeSignature $signed).Status -ne "Valid") { throw "$signed has no valid signature" } Copy-Item $signed "target/release/$name" -Force } # The Tauri bundler packs the egui app with crates/accshift-egui/tauri.conf.json, # the config of the v1.0.x Tauri builds, so an existing install updates # in place. It signs the installer for the updater. - name: Build the installer env: TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} run: node crates/accshift-egui/bundle/bundle.mjs # The installer must pack the signed executable byte for byte: a bundler # that rewrites it (the bundle type marker) leaves an invalid signature # that only shows on the user's machine. - name: Check the packed executable is still signed if: vars.SIGNPATH_ORGANIZATION_ID != '' shell: pwsh run: | $packed = "target/x86_64-pc-windows-msvc/release/accshift-gui.exe" if ((Get-AuthenticodeSignature $packed).Status -ne "Valid") { throw "$packed lost its signature while bundling" } - name: Upload the installer to sign id: unsigned_installer if: vars.SIGNPATH_ORGANIZATION_ID != '' uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: archive: false if-no-files-found: error path: target/x86_64-pc-windows-msvc/release/bundle/nsis/Accshift_${{ steps.release_tag.outputs.version }}_x64-setup.exe - name: Sign the installer if: vars.SIGNPATH_ORGANIZATION_ID != '' uses: signpath/github-action-submit-signing-request@f6d04783b4569d051e0c80105fe66e82819d0092 # v3.0 with: api-token: ${{ secrets.SIGNPATH_API_TOKEN }} organization-id: ${{ vars.SIGNPATH_ORGANIZATION_ID }} project-slug: accshift signing-policy-slug: release-signing artifact-configuration-slug: installer github-artifact-id: ${{ steps.unsigned_installer.outputs.artifact-id }} parameters: | version: "${{ steps.release_tag.outputs.version }}" wait-for-completion-timeout-in-seconds: 7200 skip-decompress: true output-artifact-directory: signed/installer # Authenticode changes the installer's bytes, so the updater signature # the bundler wrote no longer matches: sign the signed file again. - name: Use the signed installer id: windows_signed if: vars.SIGNPATH_ORGANIZATION_ID != '' shell: pwsh env: TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} run: | $version = "${{ steps.release_tag.outputs.version }}" $name = "Accshift_${version}_x64-setup.exe" $signed = "signed/installer/$name" if ((Get-AuthenticodeSignature $signed).Status -ne "Valid") { throw "$signed has no valid signature" } $installer = "target/x86_64-pc-windows-msvc/release/bundle/nsis/$name" Copy-Item $signed $installer -Force Remove-Item "$installer.sig" node node_modules/@tauri-apps/cli/tauri.js signer sign --app-version $version $installer if ($LASTEXITCODE -ne 0) { throw "tauri signer sign failed" } if (-not (Test-Path "$installer.sig")) { throw "no updater signature for $installer" } "signed=true" >> $env:GITHUB_OUTPUT - name: Stage standalone CLI artifact shell: pwsh run: | $version = "${{ steps.release_tag.outputs.version }}" $cli = "target/release/accshift.exe" if (-not (Test-Path $cli)) { throw "CLI binary not found at $cli" } New-Item -ItemType Directory -Force "target/release/bundle" | Out-Null Copy-Item $cli "target/release/bundle/accshift-cli_${version}_x64.exe" - name: Generate release changelog shell: pwsh run: | $tag = "${{ steps.release_tag.outputs.tag }}" $currentVersion = [version]($tag.Substring(1)) $previousRelease = git tag --list "v*" | ForEach-Object { if ($_ -match '^v\d+\.\d+\.\d+$') { $candidateVersion = [version]($_.Substring(1)) if ($candidateVersion -lt $currentVersion) { [PSCustomObject]@{ Tag = $_; Version = $candidateVersion } } } } | Sort-Object Version -Descending | Select-Object -First 1 $prevTag = if ($null -eq $previousRelease) { "" } else { $previousRelease.Tag } $baseCommit = "" if (-not [string]::IsNullOrWhiteSpace($prevTag)) { $previousTree = (git rev-parse "$prevTag^{tree}").Trim() foreach ($commit in git rev-list "$tag^") { if ((git show -s --format="%T" $commit).Trim() -eq $previousTree) { $baseCommit = $commit break } } if ([string]::IsNullOrWhiteSpace($baseCommit)) { throw "Could not find the $prevTag release tree in the current history. Refusing to generate an all-history changelog." } } $range = if ([string]::IsNullOrWhiteSpace($baseCommit)) { $tag } else { "$baseCommit..$tag" } # PowerShell returns command output as a string array; join once, then split by separators. $recordSeparator = [char]0x1e $fieldSeparator = [char]0x1f $raw = (git log --reverse --pretty=format:"%s%x1f%b%x1e" $range) -join "`n" $records = $raw -split $recordSeparator | Where-Object { -not [string]::IsNullOrWhiteSpace($_.Trim()) } function Normalize-Subject { param([string]$Subject) $normalized = $Subject.Trim() $normalized = $normalized -replace '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([^)]+\))?!?:\s*', '' if ([string]::IsNullOrWhiteSpace($normalized)) { return $Subject.Trim() } return $normalized } function Get-SectionName { param( [string]$Subject, [string]$NormalizedSubject ) $lowerSubject = $Subject.ToLowerInvariant() $lowerNormalized = $NormalizedSubject.ToLowerInvariant() if ($lowerSubject -match '^(fix|hotfix)(\([^)]+\))?!?:' -or $lowerNormalized -match '^(fix|hotfix|bugfix)\b') { return "Fixes" } return "Changes" } $grouped = @{ "Changes" = New-Object System.Collections.Generic.List[object] "Fixes" = New-Object System.Collections.Generic.List[object] } foreach ($record in $records) { $parts = $record.Split($fieldSeparator, 2) if ($parts.Count -lt 1) { continue } $subject = $parts[0].Trim() if ([string]::IsNullOrWhiteSpace($subject)) { continue } $body = if ($parts.Count -ge 2) { $parts[1] } else { "" } $details = @() if (-not [string]::IsNullOrWhiteSpace($body)) { $details = $body -split "\r?\n" | ForEach-Object { $_.Trim() } | Where-Object { $_ -like "- *" } | ForEach-Object { $_.Substring(2).Trim() } } $entry = [PSCustomObject]@{ Subject = Normalize-Subject -Subject $subject Details = $details } $section = Get-SectionName -Subject $subject -NormalizedSubject $entry.Subject $grouped[$section].Add($entry) } $notes = New-Object System.Collections.Generic.List[string] foreach ($section in @("Changes", "Fixes")) { if ($grouped[$section].Count -eq 0) { continue } $notes.Add("## $section") $notes.Add("") foreach ($entry in $grouped[$section]) { if ($entry.Details.Count -gt 0) { $notes.Add("- $($entry.Subject): $($entry.Details -join '; ')") } else { $notes.Add("- $($entry.Subject)") } } $notes.Add("") } if ($notes.Count -eq 0) { $notes.Add("## Changes") $notes.Add("") $notes.Add("- No changelog entries found.") } $notesText = ($notes -join "`n").Trim() if ([string]::IsNullOrWhiteSpace($notesText)) { $notesText = "## Changes`n`n- No changelog entries found." } Set-Content -Path RELEASE_NOTES.md -Value $notesText -Encoding utf8 Get-Content RELEASE_NOTES.md # The .sig files travel with the bundles: latest.json is assembled in the # release job, which is the only place that sees all three platforms at # once. They are attached to the release too, so a download can be # verified against the updater public key by hand. - name: Upload Windows artifacts uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: bundle-windows if-no-files-found: error path: | target/x86_64-pc-windows-msvc/release/bundle/nsis/*.exe target/x86_64-pc-windows-msvc/release/bundle/nsis/*.exe.sig target/release/bundle/accshift-cli_*.exe - name: Upload release notes uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: release-notes if-no-files-found: error path: RELEASE_NOTES.md # Built in an ubuntu:22.04 container: its glibc 2.35 is the floor the # binaries may need (checked below), whatever the runner image ships. The # ubuntu-22.04 runner image retires in April 2027. linuxdeploy is an # AppImage and the container has no FUSE: it runs extracted. build-linux: runs-on: ubuntu-latest container: ubuntu:22.04 env: DEBIAN_FRONTEND: noninteractive APPIMAGE_EXTRACT_AND_RUN: "1" steps: # Checkout needs git in the container, else it falls back to a tarball. - name: Install git run: apt-get update && apt-get install -y --no-install-recommends ca-certificates git - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Resolve release tag id: release_tag run: | tag="$GITHUB_REF_NAME" if ! printf '%s' "$tag" | grep -Eq '^v[0-9]+\.[0-9]+\.[0-9]+$'; then echo "Invalid tag '$tag'. Expected format: vX.Y.Z" >&2 exit 1 fi echo "version=${tag#v}" >> "$GITHUB_OUTPUT" # build-essential: the linker; curl, unzip, xz-utils: rustup and Node. # librsvg2-dev: the AppImage's GTK plugin bundles its pixbuf loader. # libxkbcommon-x11-0: bundle.mjs copies it into the AppImage (winit # opens it at run time, linuxdeploy cannot see it). - name: Install Linux build deps run: | apt-get update apt-get install -y --no-install-recommends \ build-essential ca-certificates curl file unzip xz-utils \ libgtk-3-dev \ libxkbcommon-dev \ libxkbcommon-x11-0 \ librsvg2-dev \ pkg-config - name: Setup Node uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version: 22 run-install: false - name: Setup Rust uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable branch, pinned 2026-06-09 # The container has no system Node, so no corepack on PATH: it sits next # to the Node binary setup-vp installed. - name: Put corepack on PATH run: dirname "$(node -p process.execPath)" >> "$GITHUB_PATH" - name: Install the bundler run: corepack pnpm install --frozen-lockfile # Version/tag consistency and the telemetry URL format are validated once # in build-windows; the release job depends on all build jobs, so a # failure there still blocks the release. - name: Build the bundles env: ACCSHIFT_TELEMETRY_URL: ${{ vars.ACCSHIFT_TELEMETRY_URL }} TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} run: node crates/accshift-egui/bundle/bundle.mjs --build # A glibc newer than the container's means the build left it: a binary # built there does not start on older distros, and the updater would # ship it to them. - name: Check the glibc floor run: | floor="2.35" for bin in target/x86_64-unknown-linux-gnu/release/accshift-gui target/release/accshift; do need=$(objdump -T "$bin" | grep -o 'GLIBC_[0-9.]*' | sed 's/GLIBC_//' | sort -V | tail -1) echo "$bin needs glibc $need (floor $floor)" if [ "$(printf '%s\n%s\n' "$floor" "$need" | sort -V | tail -1)" != "$floor" ]; then echo "$bin needs glibc $need, above the $floor floor" >&2 exit 1 fi done - name: Stage standalone CLI artifact run: | version="${{ steps.release_tag.outputs.version }}" cli="target/release/accshift" if [ ! -f "$cli" ]; then echo "CLI binary not found at $cli" >&2 exit 1 fi mkdir -p target/release/bundle cp "$cli" "target/release/bundle/accshift-cli_${version}_linux_x86_64" - name: Upload Linux artifacts uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: bundle-linux if-no-files-found: error path: | target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb.sig target/x86_64-unknown-linux-gnu/release/bundle/rpm/*.rpm target/x86_64-unknown-linux-gnu/release/bundle/rpm/*.rpm.sig target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage.sig target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage.tar.gz target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage.tar.gz.sig target/release/bundle/accshift-cli_*_linux_* build-macos: runs-on: macos-latest steps: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Resolve release tag id: release_tag run: | tag="$GITHUB_REF_NAME" if ! printf '%s' "$tag" | grep -Eq '^v[0-9]+\.[0-9]+\.[0-9]+$'; then echo "Invalid tag '$tag'. Expected format: vX.Y.Z" >&2 exit 1 fi echo "version=${tag#v}" >> "$GITHUB_OUTPUT" - name: Setup Node uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version: 22 run-install: false - name: Setup Rust uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable branch, pinned 2026-06-09 - name: Install the bundler run: corepack pnpm install --frozen-lockfile # Bundles are unsigned and not notarized (no Apple Developer identity # yet). Gatekeeper will quarantine the download; the install # instructions in the release notes cover removing the quarantine flag. - name: Build the bundles env: ACCSHIFT_TELEMETRY_URL: ${{ vars.ACCSHIFT_TELEMETRY_URL }} TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} run: node crates/accshift-egui/bundle/bundle.mjs --build - name: Stage standalone CLI artifact run: | version="${{ steps.release_tag.outputs.version }}" cli="target/release/accshift" if [ ! -f "$cli" ]; then echo "CLI binary not found at $cli" >&2 exit 1 fi mkdir -p target/release/bundle cp "$cli" "target/release/bundle/accshift-cli_${version}_macos_aarch64" - name: Upload macOS artifacts uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: bundle-macos if-no-files-found: error path: | target/aarch64-apple-darwin/release/bundle/dmg/*.dmg target/aarch64-apple-darwin/release/bundle/macos/*.app.tar.gz target/aarch64-apple-darwin/release/bundle/macos/*.app.tar.gz.sig target/release/bundle/accshift-cli_*_macos_* release: needs: [build-windows, build-linux, build-macos] runs-on: ubuntu-latest permissions: contents: write steps: - name: Download build artifacts uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: path: artifacts merge-multiple: true - name: Assemble release files run: | mkdir -p dist # Artifacts keep their bundle subdirectories (nsis/, deb/, dmg/...); # flatten them so the release attaches plain files. find artifacts -type f ! -name RELEASE_NOTES.md -exec cp {} dist/ \; ls -la dist # tauri-plugin-updater looks the running target up in a single # `platforms` map and answers Error::TargetNotFound when it is absent, so # a manifest listing Windows alone means no auto-update at all on Linux # and macOS. This is the only job that sees every platform's signature at # once, which is why the manifest is built here and not in a build job. - name: Generate updater manifest env: TAG: ${{ github.ref_name }} REPO: ${{ github.repository }} run: | set -euo pipefail version="${TAG#v}" notes="$(cat artifacts/RELEASE_NOTES.md)" if [ -z "$(printf '%s' "$notes" | tr -d '[:space:]')" ]; then notes="No changelog entries found." fi platforms='{}' # Adds one `platforms` entry. $1 is the updater target key, the rest # are filename globs tried in order until one matches a file in # dist/. The matched bundle must have its .sig beside it. add_platform() { target="$1" shift asset="" for pattern in "$@"; do for candidate in dist/$pattern; do if [ -f "$candidate" ]; then asset="$candidate" break fi done if [ -n "$asset" ]; then break fi done if [ -z "$asset" ]; then echo "No updater bundle found for $target (tried: $*)" >&2 return 1 fi name="$(basename "$asset")" if [ ! -f "$asset.sig" ]; then echo "Missing updater signature file for $name: $asset.sig" >&2 return 1 fi signature="$(tr -d '\r\n' < "$asset.sig")" if [ -z "$signature" ]; then echo "Signature file is empty: $asset.sig" >&2 return 1 fi platforms="$(printf '%s' "$platforms" | jq \ --arg target "$target" \ --arg signature "$signature" \ --arg url "https://github.com/$REPO/releases/download/$TAG/$name" \ '.[$target] = { signature: $signature, url: $url }')" echo "latest.json: $target -> $name" } # Same, but a target with no signed bundle is skipped instead of # failing the release. Used for the entries that only matter when the # bundler happens to sign the package format in question. add_optional_platform() { add_platform "$@" || echo "latest.json: no updater bundle for $1, skipped" } # The bundle a v2 updater expects per OS: the NSIS installer on # Windows, the AppImage on Linux (the .tar.gz wrapper is only # produced in v1-compatible mode), the .app tarball on macOS. add_platform windows-x86_64 '*-setup.exe' add_platform linux-x86_64 '*.AppImage.tar.gz' '*.AppImage' add_platform darwin-aarch64 '*.app.tar.gz' # An app installed from the .deb or the .rpm asks for these keys # before falling back to linux-x86_64, and would otherwise be handed # an AppImage that dpkg cannot install. add_optional_platform linux-x86_64-deb '*.deb' add_optional_platform linux-x86_64-rpm '*.rpm' jq -n \ --arg version "$version" \ --arg notes "$notes" \ --arg pub_date "$(date -u +%Y-%m-%dT%H:%M:%S.%3NZ)" \ --argjson platforms "$platforms" \ '{ version: $version, notes: $notes, pub_date: $pub_date, platforms: $platforms }' \ > dist/latest.json cat dist/latest.json - name: Generate SHA256 checksums run: | cd dist rm -f SHA256SUMS.txt files=$(find . -maxdepth 1 -type f ! -name SHA256SUMS.txt -printf '%f\n' | sort) if [ -z "$files" ]; then echo "No release artifacts found" >&2 exit 1 fi printf '%s\n' "$files" | xargs sha256sum > SHA256SUMS.txt cat SHA256SUMS.txt - name: Finalize release notes env: WINDOWS_SIGNED: ${{ needs.build-windows.outputs.signed }} REPO: ${{ github.repository }} run: | cp artifacts/RELEASE_NOTES.md RELEASE_NOTES.md cat >> RELEASE_NOTES.md <<'EOF' ## Install notes - **Windows**: run the `-setup.exe` installer. - **Linux**: install the `.deb` / `.rpm`, or `chmod +x` the `.AppImage` and run it. - **macOS** (Apple Silicon): the app is not yet notarized. After copying Accshift.app to Applications, clear the quarantine flag once: `xattr -cr /Applications/Accshift.app`. EOF if [ "$WINDOWS_SIGNED" = "true" ]; then cat >> RELEASE_NOTES.md <