Skip to content

Commit 33cc0fa

Browse files
authored
Add files via upload
1 parent 8ed53cf commit 33cc0fa

File tree

3 files changed

+753
-18
lines changed

3 files changed

+753
-18
lines changed

installer/Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

installer/build.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
use std::process::Command;
22

33
fn main() {
4-
// Build the canopy binary first!
4+
// Build the canopy binary first
55
println!("cargo:rerun-if-changed=../src/main.rs");
66
println!("cargo:rerun-if-changed=../Cargo.toml");
77

88
let status = Command::new("cargo")
99
.args(&["build", "--release", "--manifest-path", "../Cargo.toml"])
1010
.status()
11-
.expect("Failed to build canopy :(");
11+
.expect("Failed to build canopy");
12+
1213
if !status.success() {
13-
panic!("Uh oh! The Canopy build failed.");
14+
panic!("Canopy build failed");
1415
}
15-
let src = "../target/release/canopy.exe"; /// Lowk just change this to whatever
16+
17+
// Copy the built binary to the installer directory
18+
let src = "../target/release/canopy.exe";
1619
let dest = "canopy.exe";
17-
std::fs::copy(src, dest).expect("copy canopy binary failed.");
1820

19-
}
21+
std::fs::copy(src, dest).expect("Failed to copy canopy binary");
22+
}

0 commit comments

Comments
 (0)