Skip to content

Commit

Permalink
fix(all): rename updater after build
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Oct 6, 2023
1 parent 05ec234 commit 23a47c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prebuild": "terser --comments all --mangle -o src-tauri/injection/injection_min.js -- src-tauri/injection/injection.js && terser --mangle -o src-tauri/injection/preinject_min.js -- src-tauri/injection/preinject.js",
"dev": "pnpm prebuild && pnpm build && tauri dev",
"build": "pnpm prebuild && tsc && vite build",
"build:updater": "cd updater && cargo build --release && cd .. && cp updater/target/release/updater* src-tauri/",
"build:updater": "cd updater && cargo build --release && cd .. && cp updater/target/release/updater* src-tauri/ && mv src-tauri/updater.exe src-tauri/updater",
"preview": "vite preview",
"tauri": "tauri",
"format": "cargo fmt --manifest-path ./src-tauri/Cargo.toml --all && prettier src -w",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/src/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub async fn do_update(to_update: Vec<String>) -> () {
// Run the updater as a seperate process
let mut updater_path = std::env::current_exe().unwrap();
updater_path.pop();
updater_path.push("updater.exe");
updater_path.push("updater");

let mut updater = std::process::Command::new(updater_path);

Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"html/notification.html",
"html/extra.css",
"icons/icon*.ico",
"updater.exe"
"updater"
],
"shortDescription": "",
"targets": "all",
Expand Down

0 comments on commit 23a47c2

Please sign in to comment.