mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-07-08 01:31:53 +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}"
|
export RUSTFLAGS="-C linker=${CC}"
|
||||||
cargo build --release --target ${{ matrix.arch }}
|
cargo build --release --target ${{ matrix.arch }}
|
||||||
version=${{ github.event.release.tag_name }}
|
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"
|
7z a -mx9 "../../../msg_tool-${version}-${{ matrix.arch }}.zip" "msg_tool"
|
||||||
- name: Upload to release
|
- name: Upload to release
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -61,6 +61,8 @@ zstd = { version = "0.13", optional = true }
|
|||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["all-fmt", "image-jpg", "image-jxl", "image-webp", "audio-flac", "jieba"]
|
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-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-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"]
|
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
|
import sys
|
||||||
|
|
||||||
def filter_name(name):
|
def filter_name(name):
|
||||||
|
if name == 'zig':
|
||||||
|
return False
|
||||||
if name.startswith("utils-"):
|
if name.startswith("utils-"):
|
||||||
return False
|
return False
|
||||||
if name.startswith("all-"):
|
if name.startswith("all-"):
|
||||||
|
|||||||
Reference in New Issue
Block a user