Files
Quer3qandClaude Opus 5.5 56e6813622 PS5 Dump Forge 0.0.1-pre2: Windows x64, Linux x64, macOS universal
- Convert: the job queue sits under the cards, full width, and scrolls inside itself.
- macOS: a universal zip next to the arm64 one; both CLI slices run in the release check.
- Windows x64: file identity, hard links, free space/FAT32 preflight and CLI Ctrl-C in core;
  WebView2 handling (bundled Fixed Version runtime, Windows 10 ACL grant, message boxes);
  two portable zips (system WebView2 / bundled runtime).
- Linux x64: AppDir .tar.gz with a forge.sh launcher; xdg-open gets the host environment.
- Release: windows and linux jobs, scripts/check-versions.sh, one SHA256SUMS over all
  archives. CI lints and tests the GUI on all three OSes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 21:08:35 +03:00

26 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
# Check that Cargo.toml, app/src-tauri/tauri.conf.json and app/package.json carry the same version,
# and, on a tag build (GITHUB_REF_TYPE=tag), that the tag is v<version>. Errors use GitHub's
# `::error::` annotation; any other run just prints them.
#
# scripts/check-versions.sh
#
# Every value has its `\r` stripped: on Windows, a CRLF checkout and native jq.exe's CRLF output
# would otherwise make equal versions differ.
set -euo pipefail
cd "$(dirname "$0")/.."
version=$(tr -d '\r' < Cargo.toml | sed -n 's/^version = "\(.*\)"$/\1/p' | head -n1)
tauri=$(jq -r .version app/src-tauri/tauri.conf.json | tr -d '\r')
npm=$(jq -r .version app/package.json | tr -d '\r')
echo "Cargo.toml $version, tauri.conf.json $tauri, package.json $npm"
if [[ -z $version || $tauri != "$version" || $npm != "$version" ]]; then
echo "::error::versions differ: Cargo.toml $version, tauri.conf.json $tauri, app/package.json $npm"
exit 1
fi
if [[ ${GITHUB_REF_TYPE:-} == tag && ${GITHUB_REF_NAME:-} != "v$version" ]]; then
echo "::error::tag ${GITHUB_REF_NAME:-} does not match version $version"
exit 1
fi