修复版本号和构建配置:更新至0.1.7并优化GitHub Actions
- 移除淘宝镜像源,使用官方源 - 更新 tauri.conf.json 版本至 0.1.7 - 更新 Cargo.toml 版本至 0.1.7 - 确保发布产物名称正确显示为 tms_tools_0.1.7 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
25
.github/workflows/publish.yml
vendored
25
.github/workflows/publish.yml
vendored
@@ -32,6 +32,15 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
|
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
|
||||||
|
|
||||||
|
# 添加 macOS 依赖安装,包括 sharp 需要的构建工具
|
||||||
|
- name: install dependencies (macos only)
|
||||||
|
if: matrix.platform == 'macos-latest'
|
||||||
|
run: |
|
||||||
|
# 安装 sharp 需要的构建工具和库
|
||||||
|
brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
|
||||||
|
# 设置 pkg-config 路径
|
||||||
|
echo "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/homebrew/lib/pkgconfig" >> $GITHUB_ENV
|
||||||
|
|
||||||
# 新增 pnpm/action-setup 来安装 pnpm
|
# 新增 pnpm/action-setup 来安装 pnpm
|
||||||
- name: setup pnpm
|
- name: setup pnpm
|
||||||
uses: pnpm/action-setup@v3
|
uses: pnpm/action-setup@v3
|
||||||
@@ -55,6 +64,13 @@ jobs:
|
|||||||
- name: install setuptools
|
- name: install setuptools
|
||||||
run: pip install setuptools
|
run: pip install setuptools
|
||||||
|
|
||||||
|
# 设置 sharp 构建环境变量
|
||||||
|
- name: setup sharp build environment
|
||||||
|
if: matrix.platform == 'macos-latest'
|
||||||
|
run: |
|
||||||
|
echo "SHARP_IGNORE_GLOBAL_LIBVIPS=1" >> $GITHUB_ENV
|
||||||
|
echo "npm_config_arch=${{ matrix.args == '--target aarch64-apple-darwin' && 'arm64' || 'x64' }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: install Rust stable
|
- name: install Rust stable
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
@@ -66,6 +82,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
workspaces: './src-tauri -> target'
|
workspaces: './src-tauri -> target'
|
||||||
|
|
||||||
|
# 缓存 node_modules 以加速构建
|
||||||
|
- name: cache node_modules
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: ${{ matrix.platform }}-node-modules-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ matrix.platform }}-node-modules-
|
||||||
|
|
||||||
# 修改依赖安装命令为 pnpm install
|
# 修改依赖安装命令为 pnpm install
|
||||||
- name: install frontend dependencies
|
- name: install frontend dependencies
|
||||||
# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
|
# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tms_tools"
|
name = "tms_tools"
|
||||||
version = "0.1.1"
|
version = "0.1.7"
|
||||||
description = "A Tauri App"
|
description = "A Tauri App"
|
||||||
authors = ["you"]
|
authors = ["you"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "tms_tools",
|
"productName": "tms_tools",
|
||||||
"version": "0.1.0",
|
"version": "0.1.7",
|
||||||
"identifier": "com.tms-tools.app",
|
"identifier": "com.tms-tools.app",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "pnpm dev",
|
"beforeDevCommand": "pnpm dev",
|
||||||
|
|||||||
Reference in New Issue
Block a user