Skip to content

Commit

Permalink
chore: 7.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KonghaYao committed Jan 5, 2025
1 parent 1c54f20 commit 1d0d212
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/cross-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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<[email protected]>"]
homepage = "https://chinese-font.netlify.app/"
Expand Down

0 comments on commit 1d0d212

Please sign in to comment.