Use native Python command for Linux release verification and refresh rollout status
This commit is contained in:
1 parent
8ad98ff2dd
commit
c69259373c
2 files changed
+20
-18
No files matched your search
@@ -14,6 +14,9 @@ fn main() {
|
||||
println!("cargo:rerun-if-changed=../../../crates/searchi-extract-worker/src");
|
||||
println!("cargo:rerun-if-changed=../../../Cargo.lock");
|
||||
println!("cargo:rerun-if-changed=../../../Cargo.toml");
|
||||
for crate_name in ["searchi-core", "searchi-media", "searchi-extract-worker"] {
|
||||
println!("cargo:rerun-if-changed=../../../crates/{crate_name}/Cargo.toml");
|
||||
}
|
||||
if std::env::var("PROFILE").as_deref() == Ok("release") {
|
||||
let metadata = std::fs::symlink_metadata(&helper).unwrap_or_else(|_| {
|
||||
panic!("Missing packaged document helper. Run tools/stage_extraction_worker.py before building a release.")
|
||||
@@ -29,7 +32,7 @@ fn main() {
|
||||
&& matches!(target.as_str(), "windows" | "linux")
|
||||
{
|
||||
let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../../..");
|
||||
let status = std::process::Command::new("python")
|
||||
let status = std::process::Command::new(if cfg!(windows) { "python" } else { "python3" })
|
||||
.arg(root.join("tools/stage_extraction_worker.py"))
|
||||
.args(["--verify-only", "--platform", &target, "--architecture"])
|
||||
.arg(std::env::var("CARGO_CFG_TARGET_ARCH").expect("target architecture"))
|
||||
|
||||
Reference in new issue
Block a user