CI / Format and clippy (push) Successful in 1m57s
CI / Dependency audit (push) Successful in 13s
CI / Check desktop app (Linux) (push) Successful in 3m54s
CI / Tests (Linux) (push) Failing after 7m25s
Release / Create release (push) Successful in 6s
Release / CLI (linux-aarch64) (push) Successful in 1m48s
Release / CLI (linux-x86_64) (push) Successful in 2m39s
Release / Desktop app (linux-aarch64) (push) Successful in 10m9s
Release / Desktop app (linux-x86_64) (push) Successful in 12m20s
Release / Desktop app (windows) (push) Successful in 7m32s
Release / Build latest.json (push) Successful in 5s
Completes the English-only standardization for code, comments, scripts and CI templates (UI/CLI-facing strings stay bilingual pt-BR/en, untouched). Covers the remaining crates/, apps/gui/ui/ and apps/gui/src-tauri/ comments, .gitea/ workflow and template comments, .githooks/ hooks, and the scripts/ source comments for the files already renamed in a prior commit (check.sh, generate-logo.py, install-hooks.sh). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VAyr8d7HuAdUGB6aA5xmDD
37 lines
1.3 KiB
Bash
Executable File
37 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Builds the CLI for a target platform and packages it as:
|
|
# guara-<tag>-<platform>.tar.gz alongside a .sha256 checksum file.
|
|
#
|
|
# scripts/package-cli.sh v1.3.2 linux-x86_64 x86_64-unknown-linux-gnu
|
|
#
|
|
# Supported platforms: linux-x86_64 and linux-aarch64. When cross-compiling
|
|
# from a non-x86_64 host, uses gcc-x86-64-linux-gnu. Writes the archives to the
|
|
# repository root and prints their filenames.
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
tag=${1:?usage: package-cli.sh <tag> <platform> <rust-target>}
|
|
platform=${2:?usage: package-cli.sh <tag> <platform> <rust-target>}
|
|
target=${3:?usage: package-cli.sh <tag> <platform> <rust-target>}
|
|
|
|
if [ "$target" = x86_64-unknown-linux-gnu ] && [ "$(uname -m)" != x86_64 ]; then
|
|
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-linux-gnu-gcc
|
|
export CC_x86_64_unknown_linux_gnu=x86_64-linux-gnu-gcc
|
|
fi
|
|
|
|
rustup target add "$target" >/dev/null 2>&1 || true
|
|
cargo build --release --locked -p guara-cli --target "$target"
|
|
|
|
name="guara-${tag}-${platform}"
|
|
rm -rf "$name"; mkdir "$name"
|
|
cp "${CARGO_TARGET_DIR:-target}/${target}/release/guara" "$name/"
|
|
cp README.md LICENSE-MIT LICENSE-APACHE "$name/"
|
|
|
|
tar czf "$name.tar.gz" "$name"
|
|
asset="$name.tar.gz"
|
|
rm -rf "$name"
|
|
sha256sum "$asset" > "$asset.sha256"
|
|
echo "$asset"
|
|
echo "$asset.sha256"
|