wind0ze cross-compile tweaks

This commit is contained in:
fekt
2023-02-19 18:32:12 -05:00
parent 5f483c2659
commit 2e11d6164b
2 changed files with 8 additions and 5 deletions

BIN
res/libsodium.a Normal file

Binary file not shown.

13
win-static-build.sh Normal file → Executable file
View File

@@ -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