From c0d97f254fa82fc0e16af108b4edebe642b9b812 Mon Sep 17 00:00:00 2001 From: endernon Date: Tue, 5 Nov 2024 20:29:22 +0000 Subject: [PATCH] Create build script that puts the results in ./product --- .gitignore | 1 + build_x64.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 build_x64.sh diff --git a/.gitignore b/.gitignore index 12b0c37..551c152 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ # will have compiled files and executables debug/ target/ +product/ # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html diff --git a/build_x64.sh b/build_x64.sh new file mode 100644 index 0000000..5fb31ec --- /dev/null +++ b/build_x64.sh @@ -0,0 +1,7 @@ +cargo build --target x86_64-unknown-linux-gnu --package idmanglercli --bin idmanglercli +cargo build --target x86_64-pc-windows-gnu --package idmanglercli --bin idmanglercli + +mkdir -p product + +cp ./target/x86_64-pc-windows-gnu/release/newestidmangler ./product/idmangler-gui-windows-x64 +cp ./target/x86_64-unknown-linux-gnu/release/newestidmangler ./product/idmangler-gui-linux-x64