mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-13 01:09:56 -05:00
Fix: Inject Bundle Resources in CI
This commit is contained in:
@@ -113,10 +113,20 @@ jobs:
|
|||||||
# lib.rs looks for suwayomi-bundle/jre/bin/javaw.exe in the resource dir.
|
# lib.rs looks for suwayomi-bundle/jre/bin/javaw.exe in the resource dir.
|
||||||
cp -r suwayomi-extracted src-tauri/binaries/suwayomi-bundle
|
cp -r suwayomi-extracted src-tauri/binaries/suwayomi-bundle
|
||||||
|
|
||||||
- name: Suppress frontend rebuild
|
- name: Patch tauri.conf.json for CI
|
||||||
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.
|
||||||
|
# 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)
|
- name: Build Tauri app (Windows x64)
|
||||||
uses: tauri-apps/tauri-action@v0
|
uses: tauri-apps/tauri-action@v0
|
||||||
|
|||||||
@@ -44,10 +44,7 @@
|
|||||||
"installerIcon": "icons/icon.ico",
|
"installerIcon": "icons/icon.ico",
|
||||||
"installMode": "currentUser"
|
"installMode": "currentUser"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"resources": [
|
|
||||||
"binaries/suwayomi-bundle/**"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"shell": {
|
"shell": {
|
||||||
|
|||||||
Reference in New Issue
Block a user