mirror of
https://github.com/andrewyng/openworker.git
synced 2026-08-30 22:53:41 +00:00
Merge pull request #138 from Amagah/fix/131-sidecar-resource-dir
Create the sidecar resource dir in build.rs so a fresh clone builds
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
fn main() {
|
||||
// tauri-build validates every `bundle.resources` path on every build, dev included, but
|
||||
// `binaries/sidecar` is only staged by the release scripts and `/binaries` is gitignored —
|
||||
// so a fresh checkout died on `resource path 'binaries/sidecar' doesn't exist`. Dev needs no
|
||||
// packaged server (`server_bin()` falls back to the venv) and empty resource dirs are
|
||||
// skipped, so a placeholder is enough.
|
||||
std::fs::create_dir_all("binaries/sidecar").expect("create the sidecar resource dir");
|
||||
|
||||
tauri_build::build()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user