Fix: Inject Bundle Resources in CI

This commit is contained in:
Youwes09
2026-03-20 21:14:35 -05:00
parent 57bf9d5fb1
commit 272e026210
2 changed files with 12 additions and 5 deletions
+11 -1
View File
@@ -113,10 +113,20 @@ jobs:
# lib.rs looks for suwayomi-bundle/jre/bin/javaw.exe in the resource dir.
cp -r suwayomi-extracted src-tauri/binaries/suwayomi-bundle
- name: Suppress frontend rebuild
- name: Patch tauri.conf.json for CI
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
- name: Build Tauri app (Windows x64)
uses: tauri-apps/tauri-action@v0