Compare commits

...
4 Commits
Author SHA1 Message Date
954801926@qq.com 419c73dfe1 fix(ci): 显式透传 GITHUB_TOKEN 给 tauri-action 上传用
Release / Version consistency (push) Canceled after 0s
Release / Build (macos-latest) (push) Canceled after 0s
Release / Build (ubuntu-latest) (push) Canceled after 0s
Release / Build (windows-latest) (push) Canceled after 0s
- tauri-action 报 'GITHUB_TOKEN is required' 实际是模板替换失败
- 在 step env 显式给 ${{ secrets.GITHUB_TOKEN }} 解决
2026-07-30 00:48:20 +08:00
954801926@qq.com 30d51e0e4a fix(ci): 加 npm ci 步骤 + 移除冲突的 libappindicator3-dev
- macOS/Windows 失败: 'tauri' 命令找不到 → 实际是 npm 依赖没装
  tauri-action 不会自动 npm install, 需显式 npm ci
- Linux apt 冲突: libappindicator3-dev 与 libayatana-appindicator3-dev 互斥
  保留后者 (Tauri 2 推荐)
2026-07-30 00:39:14 +08:00
954801926@qq.com ea54cda116 fix(ci): setup-rust 改用 dtolnay/rust-toolchain (上游 @v1 解析失败) 2026-07-30 00:35:37 +08:00
954801926@qq.com ce8501cf06 fix(ci): check-version.sh 兼容预发布 tag (v0.6.0-rc1 / beta / alpha)
- 预发布标签在比较时也剥离 -rc1 / -beta.2 / -alpha.3 等后缀
- 允许用户复用已发布的版本文件来打预发布
- 显式不匹配仍正常工作
2026-07-30 00:33:16 +08:00
2 changed files with 11 additions and 2 deletions

No files matched your search

+6 -2
View File
@@ -46,7 +46,10 @@ jobs:
node-version: 20 node-version: 20
cache: 'npm' cache: 'npm'
- uses: actions/setup-rust@v1 - name: Install npm dependencies
run: npm ci
- uses: dtolnay/rust-toolchain@stable
with: with:
cache: true cache: true
@@ -56,7 +59,6 @@ jobs:
sudo apt-get update sudo apt-get update
sudo apt-get install -y \ sudo apt-get install -y \
libwebkit2gtk-4.1-dev \ libwebkit2gtk-4.1-dev \
libappindicator3-dev \
librsvg2-dev \ librsvg2-dev \
patchelf \ patchelf \
build-essential \ build-essential \
@@ -69,6 +71,8 @@ jobs:
- name: Build and upload release - name: Build and upload release
uses: tauri-apps/tauri-action@v0 uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tagName: ${{ github.ref_name }} tagName: ${{ github.ref_name }}
releaseName: ${{ github.ref_name }} releaseName: ${{ github.ref_name }}
+5
View File
@@ -16,6 +16,11 @@ fi
# Strip leading 'v' for comparison (we expect semver without v) # Strip leading 'v' for comparison (we expect semver without v)
EXPECTED_BARE="${EXPECTED#v}" EXPECTED_BARE="${EXPECTED#v}"
# Strip common prerelease suffixes (-rc1, -beta.2, -alpha.3, etc.) so a
# v0.6.0-rc1 tag can reuse the existing 0.6.0 versions in the project files.
# If the project does want a separate prerelease version, it must be
# committed explicitly to the three version files.
EXPECTED_BARE="${EXPECTED_BARE%%-*}"
PKG_VERSION=$(node -p "require('./package.json').version") PKG_VERSION=$(node -p "require('./package.json').version")
CARGO_VERSION=$(grep -E '^version\s*=' src-tauri/Cargo.toml | head -1 | sed -E 's/.*"([^"]+)".*/\1/') CARGO_VERSION=$(grep -E '^version\s*=' src-tauri/Cargo.toml | head -1 | sed -E 's/.*"([^"]+)".*/\1/')