wind0ze cross-compile tweaks
This commit is contained in:
BIN
res/libsodium.a
Normal file
BIN
res/libsodium.a
Normal file
Binary file not shown.
13
win-static-build.sh
Normal file → Executable file
13
win-static-build.sh
Normal file → Executable file
@@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Copyright 2019 The Hush Developers
|
# Copyright 2019-2023 The Hush Developers
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
VERSION=$(cat src/version.h |cut -d\" -f2)
|
VERSION=$(cat src/version.h |cut -d\" -f2)
|
||||||
echo "Compiling SilentDragonLite $VERSION .exe with $JOBS threads..."
|
echo "Compiling SilentDragonLite $VERSION .exe with $JOBS threads..."
|
||||||
@@ -11,14 +9,19 @@ set -e
|
|||||||
echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
|
echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
|
||||||
CC_x86_64_pc_windows_gnu="x86_64-w64-mingw32.static-gcc"
|
CC_x86_64_pc_windows_gnu="x86_64-w64-mingw32.static-gcc"
|
||||||
PATH="/home/$USER/git/mxe/usr/bin:${PATH}"
|
PATH="/home/$USER/git/mxe/usr/bin:${PATH}"
|
||||||
mkdir release
|
|
||||||
|
if [ ! -d "release" ]
|
||||||
|
then
|
||||||
|
mkdir release
|
||||||
|
fi
|
||||||
|
|
||||||
cp src/precompiled.h release/
|
cp src/precompiled.h release/
|
||||||
qbuild () {
|
qbuild () {
|
||||||
/home/$USER/git/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5 $CONF CONFIG+=release
|
/home/$USER/git/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5 $CONF CONFIG+=release
|
||||||
|
|
||||||
#lupdate $CONF
|
#lupdate $CONF
|
||||||
#lrelease $CONF
|
#lrelease $CONF
|
||||||
make -j$JOBS
|
make -j2
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$1" == "clean" ]; then
|
if [ "$1" == "clean" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user