mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-01-30 18:42:15 +00:00
Fix build script
This commit is contained in:
parent
8ab297208d
commit
674a9ee185
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user