From 1d0d2122b7509117e971f574029fbce56fcbf35c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E5=A4=8F=E5=B0=A7?= <3446798488@qq.com> Date: Sun, 5 Jan 2025 10:11:17 +0800 Subject: [PATCH] chore: 7.1.0 --- .github/workflows/cross-build.yml | 16 ++++++++++++++-- Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cross-build.yml b/.github/workflows/cross-build.yml index abae8cc7..b5d4f144 100644 --- a/.github/workflows/cross-build.yml +++ b/.github/workflows/cross-build.yml @@ -5,7 +5,7 @@ on: version: description: 'Version number' required: true - default: '7.0.0-beta-6' + default: '7.1.0' dryRun: description: '测试写这个为 true' required: true @@ -89,6 +89,16 @@ jobs: scoop install main/mingw scoop install main/nodejs ${{ matrix.platform.setup }} + - name: Change Version Windows + if: ${{ matrix.platform.name == 'Windows' }} + run: | + (Get-Content -Path .\Cargo.toml -Raw) -replace 'version\s*=\s*".*?"', "version = `"${{inputs.version}}`"" | + Set-Content -Path .\Cargo.toml + shell: pwsh + - name: Change Version Linux + if: ${{ matrix.platform.name != 'linux' }} + run: | + sed -i '' 's/^version = \"[^\"]*\"/version = "${{inputs.version}}"/' Cargo.toml - name: Setup Linux Environment if: ${{ runner.os == 'Linux' }} run: | @@ -170,7 +180,9 @@ jobs: sudo apt update sudo apt upgrade sudo apt install -y llvm clang pkg-config libssl-dev protobuf-compiler - + - name: Change Version Linux + run: | + sed -i '' 's/^version = \"[^\"]*\"/version = "${{inputs.version}}"/' Cargo.toml - name: Setup WASI Environment working-directory: . run: | diff --git a/Cargo.lock b/Cargo.lock index b229c6ef..a778aa13 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -541,7 +541,7 @@ dependencies = [ [[package]] name = "cn-font-split" -version = "7.0.0" +version = "7.1.0" dependencies = [ "chrono", "clap 4.5.23", diff --git a/Cargo.toml b/Cargo.toml index 32abda4a..129bc1ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "cn-font-split" description = "划时代的字体切割工具,CJK与任何字符!支持 otf、ttf、woff2 字体多线程切割,完美地细颗粒度地进行包大小控制。A revolutionary font subetter that supports CJK and any characters! It enables multi-threaded subset of otf, ttf, and woff2 fonts, allowing for precise control over package size." -version = "7.0.0" +version = "7.1.0" edition = "2021" authors = ["KonghaYao<3446798488@qq.com>"] homepage = "https://chinese-font.netlify.app/"