feat: 改为安装包分发并使用动态端口
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
use std::path::PathBuf;
|
||||
|
||||
fn main() {
|
||||
if std::env::var("PROFILE").ok().as_deref() == Some("release") {
|
||||
let backend = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
|
||||
.join("../../backend/build/nqi-backend/nqi-backend.exe");
|
||||
if !backend.is_file() {
|
||||
panic!("缺少打包后端 {}", backend.display());
|
||||
}
|
||||
}
|
||||
tauri_build::build()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user