build(hololake): add verified Windows x64 distribution path

This commit is contained in:
冰朔 2026-08-17 14:01:01 +08:00
commit 39fc36f35b
13 changed files with 275 additions and 33 deletions

View file

@ -1195,7 +1195,8 @@ fn modified_unix_ms(metadata: &fs::Metadata) -> u128 {
}
fn git(root: &Path, args: &[&str], operation: &str) -> Result<String, String> {
let output = Command::new("/usr/bin/git")
let executable = if cfg!(windows) { "git" } else { "/usr/bin/git" };
let output = Command::new(executable)
.current_dir(root)
.env("GIT_TERMINAL_PROMPT", "0")
.args(args)