mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-06 12:58:45 +08:00
Handle zig can not compile libjxl
This commit is contained in:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -37,7 +37,7 @@ jobs:
|
||||
export RUSTFLAGS="-C linker=${CC}"
|
||||
cargo build --release --target ${{ matrix.arch }}
|
||||
version=${{ github.event.release.tag_name }}
|
||||
cd target/${{ matrix.arch }}/release
|
||||
cd target/${{ matrix.arch }}/release --no-default-features -F zig
|
||||
7z a -mx9 "../../../msg_tool-${version}-${{ matrix.arch }}.zip" "msg_tool"
|
||||
- name: Upload to release
|
||||
run: |
|
||||
|
||||
@@ -61,6 +61,8 @@ zstd = { version = "0.13", optional = true }
|
||||
|
||||
[features]
|
||||
default = ["all-fmt", "image-jpg", "image-jxl", "image-webp", "audio-flac", "jieba"]
|
||||
# Zig can not build libjxl
|
||||
zig = ["all-fmt", "image-jpg", "image-webp", "audio-flac", "jieba"]
|
||||
all-fmt = ["all-script", "all-img", "all-arc", "all-audio"]
|
||||
all-script = ["artemis", "artemis-panmimisoft", "bgi", "cat-system", "circus", "entis-gls", "escude", "ex-hibit", "favorite", "hexen-haus", "kirikiri", "musica", "qlie", "silky", "softpal", "will-plus", "yaneurao", "yaneurao-itufuru"]
|
||||
all-img = ["bgi-img", "cat-system-img", "circus-img", "emote-img", "hexen-haus-img", "kirikiri-img", "qlie-img", "softpal-img", "will-plus-img"]
|
||||
|
||||
@@ -3,6 +3,8 @@ import subprocess
|
||||
import sys
|
||||
|
||||
def filter_name(name):
|
||||
if name == 'zig':
|
||||
return False
|
||||
if name.startswith("utils-"):
|
||||
return False
|
||||
if name.startswith("all-"):
|
||||
|
||||
Reference in New Issue
Block a user