mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-30 00:54:59 +03:00
19 lines
393 B
Bash
Executable file
19 lines
393 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
|