mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-13 09:19:56 -05:00
Fix: Use jq in Workflow
This commit is contained in:
@@ -117,16 +117,8 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sed -i 's/"beforeBuildCommand": "pnpm build"/"beforeBuildCommand": ""/' src-tauri/tauri.conf.json
|
sed -i 's/"beforeBuildCommand": "pnpm build"/"beforeBuildCommand": ""/' src-tauri/tauri.conf.json
|
||||||
# Inject the suwayomi-bundle resource so Tauri bundles it with the app.
|
jq '.bundle.resources = ["binaries/suwayomi-bundle/**"]' src-tauri/tauri.conf.json > tmp.json
|
||||||
# Done here (after staging) so the path exists when Tauri validates it.
|
mv tmp.json src-tauri/tauri.conf.json
|
||||||
python3 - << 'PYEOF'
|
|
||||||
import json
|
|
||||||
with open("src-tauri/tauri.conf.json") as f:
|
|
||||||
conf = json.load(f)
|
|
||||||
conf["bundle"]["resources"] = ["binaries/suwayomi-bundle/**"]
|
|
||||||
with open("src-tauri/tauri.conf.json", "w") as f:
|
|
||||||
json.dump(conf, f, indent=2)
|
|
||||||
PYEOF
|
|
||||||
|
|
||||||
- name: Build Tauri app (Windows x64)
|
- name: Build Tauri app (Windows x64)
|
||||||
uses: tauri-apps/tauri-action@v0
|
uses: tauri-apps/tauri-action@v0
|
||||||
|
|||||||
Reference in New Issue
Block a user