mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-02-12 02:05:47 +00:00
Fix libsodium cross compile for win
This commit is contained in:
parent
50988da0f5
commit
274f3c9c09
@ -25,8 +25,7 @@ ENV CC_armv7_unknown_linux_gnueabhihf="arm-linux-gnueabihf-gcc"
|
|||||||
# This is a bug fix for the windows cross compiler for Rust.
|
# This is a bug fix for the windows cross compiler for Rust.
|
||||||
RUN cp /usr/x86_64-w64-mingw32/lib/crt2.o /usr/local/rustup/toolchains/1.38.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/crt2.o
|
RUN cp /usr/x86_64-w64-mingw32/lib/crt2.o /usr/local/rustup/toolchains/1.38.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/crt2.o
|
||||||
|
|
||||||
# For windows cross compilation, use a pre-build binary
|
# For windows cross compilation, use a pre-build binary. Remember to set the
|
||||||
|
# SODIUM_LIB_DIR for windows cross compilation
|
||||||
RUN cd /opt && wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.17-mingw.tar.gz && \
|
RUN cd /opt && wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.17-mingw.tar.gz && \
|
||||||
tar xvf libsodium-1.0.17-mingw.tar.gz
|
tar xvf libsodium-1.0.17-mingw.tar.gz
|
||||||
|
|
||||||
ENV SODIUM_LIB_DIR="/opt/libsodium-win64/lib/"
|
|
@ -32,7 +32,7 @@ if [ -z $APP_VERSION ]; then echo "APP_VERSION is not set"; exit 1; fi
|
|||||||
#cargo build --release
|
#cargo build --release
|
||||||
|
|
||||||
# For Windows and Linux, build via docker
|
# 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 && cargo build --release --target x86_64-pc-windows-gnu"
|
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
|
# Now sign and zip the binaries
|
||||||
#macOS
|
#macOS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user