chore: only read from tail, for release build

This commit is contained in:
鲁树人 2024-01-17 23:52:58 +00:00
parent 6bf0f4d158
commit 85843dff3a

View File

@ -71,7 +71,7 @@ fn main() -> wry::Result<()> {
.join(format!("um-react!{}", APP_UUID)); .join(format!("um-react!{}", APP_UUID));
let exe_path = std::env::current_exe().unwrap(); let exe_path = std::env::current_exe().unwrap();
let um_react_external = exe_path.parent().unwrap().join("um-react.zip"); 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 // debug/prod: override by reading from external zip archive
parse_external_zip(&um_react_external).unwrap() parse_external_zip(&um_react_external).unwrap()
} else { } else {