Files
clawpal/.github/workflows/release.yml
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

93 lines
2.6 KiB
YAML

name: Release
on:
push:
tags: ['v*']
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- platform: macos-latest
target: aarch64-apple-darwin
label: macOS-ARM64
- platform: macos-latest
target: x86_64-apple-darwin
label: macOS-x64
- platform: ubuntu-22.04
target: x86_64-unknown-linux-gnu
label: Linux-x64
- platform: windows-latest
target: x86_64-pc-windows-msvc
label: Windows-x64
runs-on: ${{ matrix.platform }}
name: Build (${{ matrix.label }})
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Install Linux dependencies
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf
- name: Install frontend dependencies
run: npm ci
- name: Build Tauri app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ''
with:
tagName: ${{ github.ref_name }}
releaseName: ClawPal ${{ github.ref_name }}
releaseBody: |
## ClawPal ${{ github.ref_name }}
### Installation
**macOS** (unsigned — requires manual approval):
- Download the `.dmg` for your architecture (ARM for Apple Silicon, x64 for Intel)
- Open the DMG and drag ClawPal to Applications
- First launch: right-click the app → Open, or run `xattr -cr /Applications/ClawPal.app`
**Windows** (unsigned — SmartScreen will warn):
- Download the `.exe` (NSIS installer) or `.msi`
- If SmartScreen blocks: click "More info" → "Run anyway"
**Linux**:
- `.deb`: `sudo dpkg -i clawpal_*.deb`
- `.AppImage`: `chmod +x ClawPal_*.AppImage && ./ClawPal_*.AppImage`
releaseDraft: true
prerelease: false
args: --target ${{ matrix.target }}