From 77202f54186d0fe62f52d47c43b4d2977a046a01 Mon Sep 17 00:00:00 2001 From: Brian Li Date: Mon, 5 Sep 2022 19:49:00 +0800 Subject: [PATCH] Fix build --- app/src-tauri/src/main.rs | 4 +--- app/svelte.config.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src-tauri/src/main.rs b/app/src-tauri/src/main.rs index 915be78..5fb6b6f 100644 --- a/app/src-tauri/src/main.rs +++ b/app/src-tauri/src/main.rs @@ -115,9 +115,7 @@ fn log(s: impl Into) { #[tokio::main] async fn main() { - if cli::exec().await { - ort::deinit(); - } else { + if !cli::exec().await { #[allow(unused_imports)] tauri::Builder::default() .invoke_handler(tauri::generate_handler![ diff --git a/app/svelte.config.js b/app/svelte.config.js index 5747dab..08394d8 100644 --- a/app/svelte.config.js +++ b/app/svelte.config.js @@ -13,7 +13,7 @@ const config = { kit: { adapter: adapter({ - fallback: "200.html", + fallback: "index.html", }), trailingSlash: "always", prerender: { entries: [] },