CLI: inline font download + checksum verification

- Add `fonts download` and `fonts verify` subcommands
- Implement Rust-based downloader (ureq + tar + flate2) with pinned sources
- Verify SHA-256 for Liberation and Noto Sans TTFs for reproducibility
- Keep binary behind `build-bin` feature; library build unaffected
This commit is contained in:
Andy
2025-08-11 15:04:47 +08:00
parent 98c056c3d9
commit d4ebdbf6a9
6 changed files with 170 additions and 38 deletions
+4 -4
View File
@@ -106,8 +106,8 @@ jobs:
brew update
brew install pkg-config freetype jpeg libpng
- name: Run tests
run: cargo test --all-features --verbose
- name: Run tests (library only)
run: cargo test --verbose --lib
build:
name: Build Release Artifacts
@@ -169,9 +169,9 @@ jobs:
- name: Build release binary
run: |
if [ "${{ matrix.job.use-cross }}" = "true" ]; then
cross build --release --target ${{ matrix.job.target }} --all-features
cross build --release --target ${{ matrix.job.target }}
else
cargo build --release --target ${{ matrix.job.target }} --all-features
cargo build --release --target ${{ matrix.job.target }}
fi
- name: Prepare release archive