-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·21 lines (16 loc) · 900 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/bash
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#!!! This script was made for me, MCorange !!!
#!!! And it will probably not work for you, !!!
#!!! i use arch so good luck if wanna try !!!
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# linux
cargo build --release
# win32
cargo build --release --target "x86_64-pc-windows-gnu" \
--config x86_64-pc-windows-gnu.linker=\"/usr/bin/x86_64-w64-mingw32-gcc\" \
--config x86_64-pc-windows-gnu.ar=\"/usr/bin/x86_64-w64-mingw32-ar\"
cp ./target/release/svg2colored-png ./target/svg2colored-png-linux-x86_64
cp ./target/x86_64-pc-windows-gnu/release/svg2colored-png.exe ./target/svg2colored-png-win32-x86_64.exe