Files
clawpal/scripts/release.sh
zhixian 9717a64310 feat: add cross-platform release pipeline and app icons
- Update tauri.conf.json with multi-platform bundle config (macOS unsigned, Windows unsigned)
- Add app icon (1024x1024 source) and generate all required sizes (png, icns, ico)
- Add generate-icons.sh script for regenerating icons from source PNG
- Add GitHub Actions release workflow for 4-target parallel builds (macOS ARM/x64, Linux, Windows)
- Simplify release.sh with tag-based publish instructions

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-19 11:27:13 +09:00

40 lines
831 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
DRY_RUN=0
if [ "${1:-}" = "--dry-run" ]; then
DRY_RUN=1
fi
say() {
printf "%s\n" "$1"
}
run_or_print() {
if [ "$DRY_RUN" -eq 1 ]; then
say "[dry-run] $*"
else
say "[run] $*"
eval "$@"
fi
}
VERSION=$(node -p "require('./package.json').version")
say "ClawPal v${VERSION} release assistant"
say "======================================"
run_or_print "npm run typecheck"
run_or_print "npm run build"
run_or_print "cd src-tauri && cargo fmt --all --check"
run_or_print "cd src-tauri && cargo tauri build"
say ""
say "Local build complete!"
say ""
say "To publish via GitHub Actions (builds macOS + Windows + Linux):"
say " git tag v${VERSION}"
say " git push origin v${VERSION}"
say ""
say "This will trigger .github/workflows/release.yml and create a draft release."