mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
feat: 发布时minify resource文件下的json (#15567)
* feat: 添加json压缩脚本 * feat: 添加cmake install时进行压缩 * feat: 添加压缩成功时日志 * feat: 添加日志 * feat: 修正install路径 * fix: 确保数据写入 * revert: CMakeList.txt * feat: 在CI中进行minify json的调用
This commit is contained in:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -144,6 +144,9 @@ jobs:
|
||||
mkdir -p install
|
||||
cmake --install build --prefix install --config RelWithDebInfo
|
||||
|
||||
- name: Minify JSON in resource
|
||||
run: python3 tools/minify_json_folder.py install/resource
|
||||
|
||||
- name: Download MaaFramework
|
||||
if: matrix.arch == 'x64'
|
||||
uses: robinraju/release-downloader@v1
|
||||
@@ -286,6 +289,9 @@ jobs:
|
||||
mkdir -p install
|
||||
cmake --install build --prefix install --config RelWithDebInfo
|
||||
|
||||
- name: Minify JSON in resource
|
||||
run: python3 tools/minify_json_folder.py install/resource
|
||||
|
||||
- name: Setup cross compile toolchains for CLI
|
||||
uses: ./src/maa-cli/.github/actions/setup
|
||||
with:
|
||||
@@ -477,6 +483,7 @@ jobs:
|
||||
ln -vs libonnxruntime*.dylib libonnxruntime.dylib
|
||||
ln -vs libopencv_world4*.dylib libopencv_world4.dylib
|
||||
cp -vr ../../resource .
|
||||
python3 ../../tools/minify_json_folder.py resource
|
||||
cd .. || exit 1
|
||||
zip -yrX9 "$name.zip" "$name"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user