From 71a6eb02b5c14661eacb4663db1566cac049b2f2 Mon Sep 17 00:00:00 2001 From: Youwes09 Date: Fri, 20 Mar 2026 21:22:52 -0500 Subject: [PATCH] Fix: Use jq in Workflow --- .github/workflows/build-windows.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 2b43062..d780080 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -117,16 +117,8 @@ jobs: shell: bash run: | sed -i 's/"beforeBuildCommand": "pnpm build"/"beforeBuildCommand": ""/' src-tauri/tauri.conf.json - # Inject the suwayomi-bundle resource so Tauri bundles it with the app. - # Done here (after staging) so the path exists when Tauri validates it. - 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 + jq '.bundle.resources = ["binaries/suwayomi-bundle/**"]' src-tauri/tauri.conf.json > tmp.json + mv tmp.json src-tauri/tauri.conf.json - name: Build Tauri app (Windows x64) uses: tauri-apps/tauri-action@v0