Created
June 12, 2021 06:11
-
-
Save dmgolembiowski/c52c6931aa10b7258753660f0099d218 to your computer and use it in GitHub Desktop.
Build Release Rust
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
cargo +stable build --release --target i686-unknown-linux-gnu | |
cp -f target/i686-unknown-linux-gnu/release/{{ pkg.exe }} {{ pkg.exe }}-linux-x86 | |
strip {{ pkg.exe}}-linux-x86 | |
sha512sum {{ pkg.name }}-linux-x86 > {{ pkg.name }}-linux-x86.sha512 | |
sha512sum -c {{ pkg.name }}-linux-x86.sha512 >/dev/null | |
cargo +stable build --release --target x86_64-unknown-linux-gnu | |
cp -f target/x86_64-unknown-linux-gnu/release/{{ pkg.name }} {{ pkg.name }}-linux-x64 | |
strip {{ pkg.name }}-linux-x64 | |
sha512sum {{ pkg.name }}-linux-x64 > {{ pkg.name }}-linux-x64.sha512 | |
sha512sum -c {{ pkg.name }}-linux-x64.sha512 >/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
cargo +stable build --release --target x86_64-apple-darwin | |
cp -f target/x86_64-apple-darwin/release/{{ pkg.name }} {{ pkg.name }}-macos | |
strip {{ pkg.name }}-macos | |
shasum -a 512 {{ pkg.name }}-macos > {{ pkg.name }}-macos.sha512 | |
shasum -a 512 -c {{ pkg.name }}-macos.sha512 >/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set RUSTFLAGS=-C target-feature=+crt-static | |
cargo +stable build --release --target i686-pc-windows-msvc | |
copy /y target\i686-pc-windows-msvc\release\{{ pkg.exe }}.exe {{ pkg.exe }}-win.exe | |
echo "The compiled exe does not have resources (company info, version, icon) and signature yet!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment