From 85843dff3a58690460518cd72e3e3cc4ca5cdc1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Wed, 17 Jan 2024 23:52:58 +0000 Subject: [PATCH] chore: only read from tail, for release build --- src/stub.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stub.rs b/src/stub.rs index d826adb..24aab2d 100644 --- a/src/stub.rs +++ b/src/stub.rs @@ -71,7 +71,7 @@ fn main() -> wry::Result<()> { .join(format!("um-react!{}", APP_UUID)); let exe_path = std::env::current_exe().unwrap(); let um_react_external = exe_path.parent().unwrap().join("um-react.zip"); - let zip_content = if um_react_external.exists() { + let zip_content = if cfg!(debug_assertions) && um_react_external.exists() { // debug/prod: override by reading from external zip archive parse_external_zip(&um_react_external).unwrap() } else {