1
0
forked from GRIN/grim

fix: webtunnel build

- Fix build command execution on non-Windows

Reviewed-on: https://code.gri.mw/GUI/grim/pulls/48
This commit is contained in:
ardocrat
2026-02-20 00:01:28 +00:00
parent 7d75fc2ae0
commit a03758d383
+12 -7
View File
@@ -51,16 +51,21 @@ fn main() {
"amd64"
};
// Run Webtunnel Go build.
let mut command = if env::consts::OS == "windows" {
let output = if env::consts::OS == "windows" {
Command::new("./scripts/webtunnel.bat")
.arg(go_os)
.arg(go_arch)
.arg(webtunnel_file)
.output()
} else {
Command::new("bash ./scripts/webtunnel.sh")
Command::new("bash")
.arg("./scripts/webtunnel.sh")
.arg(go_os)
.arg(go_arch)
.arg(webtunnel_file)
.output()
};
if let Ok(out) = command
.arg(go_os)
.arg(go_arch)
.arg(webtunnel_file)
.output() {
if let Ok(out) = output {
if out.status.code().is_none() || out.status.code().unwrap() != 0 {
panic!("webtunnel go build failed:\n{:?}", out);
}