From 5f483c2659e5824ea6bfd721f7c78ed7fe295878 Mon Sep 17 00:00:00 2001 From: fekt Date: Sun, 19 Feb 2023 09:43:12 -0500 Subject: [PATCH] Build script for wind0ze --- win-static-build.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 win-static-build.sh diff --git a/win-static-build.sh b/win-static-build.sh new file mode 100644 index 0000000..5bba854 --- /dev/null +++ b/win-static-build.sh @@ -0,0 +1,35 @@ +#!/bin/bash +# Copyright 2019 The Hush Developers + + + +VERSION=$(cat src/version.h |cut -d\" -f2) +echo "Compiling SilentDragonLite $VERSION .exe with $JOBS threads..." +CONF=silentdragon-lite.pro + +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 +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 +} + +if [ "$1" == "clean" ]; then + make clean +elif [ "$1" == "linguist" ]; then + lupdate $CONF + lrelease $CONF +elif [ "$1" == "cleanbuild" ]; then + make clean + qbuild +else + qbuild +fi +