nextcloud-desktop/admin/win/docker/build.sh

20 lines
411 B
Bash
Raw Normal View History

2015-03-24 00:22:54 +03:00
#!/bin/bash
2015-03-25 00:05:40 +03:00
if [ $# -lt 1 ]; then
echo "Usage: $(basename $0) directory_relative_to_home [uid]"
exit
fi
useradd user -u ${2:-1000}
2015-03-24 00:22:54 +03:00
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 .
2015-03-24 00:22:54 +03:00
EOF