Fix sidecar.zip not bundled: move resources config into tauri.conf.json
The TAURI_CONFIG env var approach for resources wasn't being applied by the NSIS bundler, so sidecar.zip was never included in the installer. - Add resources: ["sidecar.zip"] directly to tauri.conf.json - build.rs creates a minimal placeholder zip for dev builds so compilation succeeds even without the real sidecar - Remove TAURI_CONFIG env var from all CI workflows (no longer needed) - Add sidecar.zip to .gitignore (generated by CI, not tracked) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -63,8 +63,6 @@ jobs:
|
||||
|
||||
- name: Build Tauri app
|
||||
run: npm run tauri build
|
||||
env:
|
||||
TAURI_CONFIG: '{"bundle":{"resources":["sidecar.zip"]}}'
|
||||
|
||||
# ── Release ──
|
||||
- name: Upload to release
|
||||
|
||||
@@ -62,8 +62,6 @@ jobs:
|
||||
|
||||
- name: Build Tauri app
|
||||
run: npm run tauri build
|
||||
env:
|
||||
TAURI_CONFIG: '{"bundle":{"resources":["sidecar.zip"]}}'
|
||||
|
||||
# ── Release ──
|
||||
- name: Upload to release
|
||||
|
||||
@@ -72,8 +72,6 @@ jobs:
|
||||
- name: Build Tauri app
|
||||
shell: powershell
|
||||
run: npm run tauri build
|
||||
env:
|
||||
TAURI_CONFIG: '{"bundle":{"resources":["sidecar.zip"]}}'
|
||||
|
||||
# ── Release ──
|
||||
- name: Upload to release
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -50,5 +50,6 @@ Thumbs.db
|
||||
# Sidecar build artifacts
|
||||
src-tauri/binaries/*
|
||||
!src-tauri/binaries/.gitkeep
|
||||
src-tauri/sidecar.zip
|
||||
python/dist/
|
||||
python/build/
|
||||
|
||||
@@ -1,3 +1,21 @@
|
||||
fn main() {
|
||||
// Ensure sidecar.zip exists so tauri-build doesn't fail.
|
||||
// CI replaces this placeholder with the real PyInstaller sidecar archive.
|
||||
let zip_path = std::path::Path::new("sidecar.zip");
|
||||
if !zip_path.exists() {
|
||||
// Minimal valid zip (empty archive): end-of-central-directory record
|
||||
let empty_zip: [u8; 22] = [
|
||||
0x50, 0x4b, 0x05, 0x06, // EOCD signature
|
||||
0x00, 0x00, // disk number
|
||||
0x00, 0x00, // disk with central dir
|
||||
0x00, 0x00, // entries on this disk
|
||||
0x00, 0x00, // total entries
|
||||
0x00, 0x00, 0x00, 0x00, // central dir size
|
||||
0x00, 0x00, 0x00, 0x00, // central dir offset
|
||||
0x00, 0x00, // comment length
|
||||
];
|
||||
std::fs::write(zip_path, empty_zip).expect("Failed to create placeholder sidecar.zip");
|
||||
}
|
||||
|
||||
tauri_build::build()
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
"category": "Utility",
|
||||
"shortDescription": "Transcribe audio/video with speaker identification",
|
||||
"longDescription": "Voice to Notes is a desktop application that transcribes audio and video recordings with speaker identification, synchronized playback, and AI-powered analysis. Export to SRT, WebVTT, ASS captions, or plain text.",
|
||||
"resources": ["sidecar.zip"],
|
||||
"copyright": "Voice to Notes Contributors",
|
||||
"license": "MIT",
|
||||
"linux": {
|
||||
|
||||
Reference in New Issue
Block a user