Add missed windows build scripts

This commit is contained in:
m 2024-05-07 15:49:23 +01:00
parent eef25149c9
commit 950cc84346
2 changed files with 44 additions and 0 deletions

37
scripts/windows/build_all.sh Executable file
View file

@ -0,0 +1,37 @@
set -x -e
cd "$(dirname "$0")"
if [[ ! "x$(uname)" == "xLinux" ]];
then
echo "Only Linux hosts can build windows (yes, i know)";
exit 1
fi
../prepare_moneroc.sh
# export USE_DOCKER="ON"
pushd ../monero_c
set +e
command -v sudo && export SUDO=sudo
set -e
NPROC="-j$(nproc)"
if [[ ! "x$USE_DOCKER" == "x" ]];
then
for COIN in monero wownero;
do
$SUDO docker run --platform linux/amd64 -v$HOME/.cache/ccache:/root/.ccache -v$PWD:$PWD -w $PWD --rm -it git.mrcyjanek.net/mrcyjanek/debian:buster bash -c "git config --global --add safe.directory '*'; apt update; apt install -y ccache gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 gperf libtinfo5; ./build_single.sh ${COIN} x86_64-w64-mingw32 $NPROC"
# $SUDO docker run --platform linux/amd64 -v$HOME/.cache/ccache:/root/.ccache -v$PWD:$PWD -w $PWD --rm -it git.mrcyjanek.net/mrcyjanek/debian:buster bash -c "git config --global --add safe.directory '*'; apt update; apt install -y ccache gcc-mingw-w64-i686 g++-mingw-w64-i686 gperf libtinfo5; ./build_single.sh ${COIN} i686-w64-mingw32 $NPROC"
done
else
for COIN in monero wownero;
do
$SUDO ./build_single.sh ${COIN} x86_64-w64-mingw32 $NPROC
# $SUDO ./build_single.sh ${COIN} i686-w64-mingw32 $NPROC
done
fi
popd
$SUDO unxz -f ../monero_c/release/monero/*.dll.xz
$SUDO unxz -f ../monero_c/release/wownero/*.dll.xz

7
scripts/windows/cakewallet.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
# This (wrapper) script should be run in wsl with installed (windows "side") flutter
# and available cmd.exe in PATH
# Assume that we are in scripts/windows dir
CW_ROOT=`pwd`/../..
cd $CW_ROOT
cmd.exe /c cakewallet.bat $1