💻 theme and build instructions for the nextcloud desktop client
Based on https://github.com/owncloud/client/blob/master/doc/building.rst
Run:
git submodule update --init --recursiveRun:
mkdir build-linux
cd build-linux
cmake -D OEM_THEME_DIR=`pwd`/../nextcloudtheme ../client
make
make installAttention: When building make sure to use an old Core 2 Duo build machine running OS X 10.10. Otherwise the resulting binary won't work properly for users of an older device. Have at least 180 GB free disk space when compiling Qt. Make sure your user is named "builder".
- Install HomeBrew
brew install openssl wget cmakewget https://github.com/sparkle-project/Sparkle/releases/download/1.14.0/Sparkle-1.14.0.tar.bz2tar -xf Sparkle-1.14.0.tar.bz2mv Sparkle.framework ~/Library/Frameworks/- Install XCode 6.4 from http://adcdownload.apple.com/Developer_Tools/Xcode_6.4/Xcode_6.4.dmg
- sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
- Generate Sparkle keys:
./bin/generate_keys. Keep those, if you loose it you won't be able to deploy updates anymore. - Store the keys in
osx/. Make sure to not make thedsa_priv.pempublicly available. - Install http://s.sudre.free.fr/Software/Packages/about.html
Because the desktop client comes with some custom patches you have to download the Qt 5.6.2 source and then apply all of them. Make sure to adjust with the login to the cloned client repository.
cd /tmp/
wget http://download.qt.io/official_releases/qt/5.6/5.6.2/single/qt-everywhere-opensource-src-5.6.2.tar.gz
tar -xf qt-everywhere-opensource-src-5.6.2.tar.gz
cd /tmp/qt-everywhere-opensource-src-5.6.2/qtbase
git apply <client>/admin/qt/patches/qtbase/*.patch
cd ..
./configure -sdk macosx10.9
make -j2
sudo make -j1 installsh osx/build.shThe docker image contains the toolchain to build the windows binary. Build it:
docker build -t nextcloud-client-win32:<version> client/admin/win/docker/docker run -v "$PWD:/home/user/" nextcloud-client-win32:2.2.2 /home/user/win/build.sh $(id -u)When we build releases there are two additional cmake parameters to consider:
-DMIRALL_VERSION_SUFFIX=<STRING>: for a generic suffix name such asbetaorrc1-DMIRALL_VERSION_BUILD=<INT>: an internal build number. Should be strickly increasing. This allows update detection fromrctofinal
Note that this had mostly usage on Windows and OS X. On linux the package manager will take care of all this.