Create build script that puts the results in ./product

This commit is contained in:
endernon 2024-11-05 20:29:22 +00:00
parent 05f85641da
commit c0d97f254f
2 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View file

@ -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

7
build_x64.sh Normal file
View file

@ -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