diff --git a/res/libsodium.a b/res/libsodium.a new file mode 100644 index 0000000..3a24a38 Binary files /dev/null and b/res/libsodium.a differ diff --git a/win-static-build.sh b/win-static-build.sh old mode 100644 new mode 100755 index 5bba854..3c10329 --- a/win-static-build.sh +++ b/win-static-build.sh @@ -1,7 +1,5 @@ #!/bin/bash -# Copyright 2019 The Hush Developers - - +# Copyright 2019-2023 The Hush Developers VERSION=$(cat src/version.h |cut -d\" -f2) echo "Compiling SilentDragonLite $VERSION .exe with $JOBS threads..." @@ -11,14 +9,19 @@ set -e echo 'source $HOME/.cargo/env' >> $HOME/.bashrc CC_x86_64_pc_windows_gnu="x86_64-w64-mingw32.static-gcc" PATH="/home/$USER/git/mxe/usr/bin:${PATH}" -mkdir release + +if [ ! -d "release" ] +then + mkdir release +fi + cp src/precompiled.h release/ qbuild () { /home/$USER/git/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5 $CONF CONFIG+=release #lupdate $CONF #lrelease $CONF - make -j$JOBS + make -j2 } if [ "$1" == "clean" ]; then