emerg: clear commits due to fwd server leak
This commit is contained in:
commit
66fa3474b2
12 changed files with 1081 additions and 0 deletions
16
build.rs
Normal file
16
build.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
use std::env;
|
||||
use dotenv::dotenv;
|
||||
|
||||
fn main() {
|
||||
// Bake C2 server URL into client at build time
|
||||
dotenv().ok();
|
||||
println!("cargo:rerun-if-changed=.env");
|
||||
let c2_server = env::var("C2_SERVER_URL").expect("C2 Server not defined in .env");
|
||||
println!("cargo:rustc-env=C2_SERVER_URL={}", c2_server);
|
||||
|
||||
// Windows compile shit.
|
||||
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
|
||||
let res = winresource::WindowsResource::new();
|
||||
res.compile().unwrap();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue