Browse Source

Made cross-compiling easier to me

main v0.1.0
Unbewohnte 3 years ago
parent
commit
35c7b68fd9
  1. 3
      .gitignore
  2. 19
      Makefile

3
.gitignore vendored

@ -1,2 +1,3 @@
/target /target
.idea/ /.idea
/release

19
Makefile

@ -0,0 +1,19 @@
all:
cargo build --release && mv ./target/release/mandelplot .
cross:
rm -rf release/
mkdir release
mkdir release/mandelplot_linux_amd64
mkdir release/mandelplot_windows_amd64
cp LICENSE release/mandelplot_windows_amd64/
cp LICENSE release/mandelplot_linux_amd64/
cargo build --release --target=x86_64-unknown-linux-musl
mv ./target/x86_64-unknown-linux-musl/release/mandelplot ./release/mandelplot_linux_amd64
cargo build --release --target=x86_64-pc-windows-gnu
mv ./target/x86_64-pc-windows-gnu/release/mandelplot.exe ./release/mandelplot_windows_amd64
cd release/ && zip -r mandelplot_linux_amd64 mandelplot_linux_amd64/
cd release/ && zip -r mandelplot_windows_amd64 mandelplot_windows_amd64/
Loading…
Cancel
Save