diff --git a/mkrelease.sh b/mkrelease.sh index 67c3887..c328780 100755 --- a/mkrelease.sh +++ b/mkrelease.sh @@ -31,14 +31,16 @@ cargo clean # Compile for mac directly cargo build --release +#macOS +rm -rf target/macOS-zecwallet-cli-v$APP_VERSION +mkdir -p target/macOS-zecwallet-cli-v$APP_VERSION +cp target/release/zecwallet-cli target/macOS-zecwallet-cli-v$APP_VERSION/ + # For Windows and Linux, build via docker docker run --rm -v $(pwd)/:/opt/zecwallet-light-cli rustbuild:latest bash -c "cd /opt/zecwallet-light-cli && cargo build --release && SODIUM_LIB_DIR='/opt/libsodium-win64/lib/' cargo build --release --target x86_64-pc-windows-gnu" # Now sign and zip the binaries #macOS -rm -rf target/macOS-zecwallet-cli-v$APP_VERSION -mkdir -p target/macOS-zecwallet-cli-v$APP_VERSION -cp target/release/zecwallet-cli target/macOS-zecwallet-cli-v$APP_VERSION/ gpg --batch --output target/macOS-zecwallet-cli-v$APP_VERSION/zecwallet-cli.sig --detach-sig target/macOS-zecwallet-cli-v$APP_VERSION/zecwallet-cli cd target cd macOS-zecwallet-cli-v$APP_VERSION