Skip to content

Commit dc6d30d

Browse files
committed
build: add --runVerify cli command to see if app load success
1 parent d522b02 commit dc6d30d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,11 @@ fn get_mac_deep_link_requests() -> Vec<String> {
245245
}
246246

247247
fn main() {
248+
let args: Vec<String> = env::args().collect();
249+
if args.contains(&"--runVerify".to_string()) {
250+
// Mainly used by linux installer to see if the app loaded successfully with all libs
251+
std::process::exit(0);
252+
}
248253

249254
#[cfg(target_os = "macos")]{
250255
tauri_plugin_deep_link::prepare("io.phcode");

0 commit comments

Comments
 (0)