chore: 调整构建配置并降级typescript版本

1. 将actions/checkout、setup-node版本升级到v5
2. 新增pnpm配置并切换到pnpm管理依赖
3. 将typescript版本从7.0.2降级到5.6.2
4. 添加应用图标文件
This commit is contained in:
Yuhang Wu 2026-08-21 15:21:37 +08:00
parent 8770cd7337
commit 475619b7a0
3 changed files with 12 additions and 6 deletions

View File

@ -38,7 +38,7 @@ jobs:
steps:
# 1. 检出代码
- uses: actions/checkout@v4
- uses: actions/checkout@v5
# 2. 安装 Linux 系统依赖(仅 Ubuntu
- name: Install dependencies (Ubuntu only)
@ -48,11 +48,17 @@ jobs:
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf xdg-utils
# 3. 安装 Node.js
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: lts/*
cache: 'npm' # 或 yarn / pnpm
cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml
# 4. 安装 Rust
- name: Install Rust stable
@ -68,7 +74,7 @@ jobs:
# 6. 安装前端依赖
- name: Install frontend dependencies
run: npm install
run: pnpm install --frozen-lockfile
# 7. 构建并发布(核心步骤)
- uses: tauri-apps/tauri-action@v0
@ -80,4 +86,4 @@ jobs:
releaseBody: 'See the assets to download and install.'
releaseDraft: true # 先创建草稿,手动确认后再发布
prerelease: false
args: ${{ matrix.args }}
args: ${{ matrix.args }}

BIN
app-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@ -36,7 +36,7 @@
"@vicons/utils": "^0.1.4",
"@vitejs/plugin-vue": "^6.0.8",
"sass": "^1.102.0",
"typescript": "~7.0.2",
"typescript": "~5.6.2",
"unplugin-auto-import": "^21.1.0",
"unplugin-vue-components": "^32.1.0",
"vite": "^8.2.1",