-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd9ca58
commit ae5e548
Showing
6 changed files
with
52 additions
and
59 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
[[ $PWD = */monero-vanity ]] | ||
|
||
echo "=== Removing old /tmp/ build folders ===" | ||
rm -rf /tmp/monero-vanity-${VER}* | ||
|
||
VER="v$(grep "version" Cargo.toml | awk '{print $3}' | tr -d '"')" | ||
TMP=$(mktemp -d /tmp/monero-vanity-${VER}.XXXX) | ||
echo "=== \$TMP: $TMP ===" | ||
echo "=== \$VER: $VER ===" | ||
|
||
echo "=== Building Linux x86_64 ===" | ||
cargo build --profile optimized | ||
mv target/optimized/monero-vanity $TMP/monero-vanity-${VER}-linux-x64 | ||
|
||
echo "=== Building Windows x86_64 ===" | ||
cargo build --profile optimized --target x86_64-pc-windows-gnu | ||
mv target/x86_64-pc-windows-gnu/optimized/monero-vanity.exe $TMP/monero-vanity-${VER}-windows-x64.exe | ||
|
||
cd $TMP | ||
echo "=== Hashing/Signing ===" | ||
sha256sum monero-vanity-${VER}-linux-x64 monero-vanity-${VER}-windows-x64.exe | gpg --clearsign > $TMP/SHA256SUM | ||
echo "Done." |
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