1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2024-11-22 01:42:46 +01:00
Nextcloud-Desktop/admin/win/docker/build.sh

20 lines
411 B
Bash
Executable File

#!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage: $(basename $0) directory_relative_to_home [uid]"
exit
fi
useradd user -u ${2:-1000}
su - user << EOF
cd /home/user/$1
rm -rf build-win32
mkdir build-win32
cd build-win32
../admin/win/download_runtimes.sh
cmake .. -DCMAKE_TOOLCHAIN_FILE=../admin/win/Toolchain-mingw32-openSUSE.cmake -DWITH_CRASHREPORTER=ON
make -j4
make package
ctest .
EOF