Skip to content
πŸ— Build scripts for the desktop client
Branch: master
Clone or download
camilasan Fix rm command.
Signed-off-by: Camila San <>
Latest commit 11df234 May 28, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
linux initial commit Aug 24, 2018
.gitignore initial commit Aug 24, 2018
NSIS.InstallOptions.ini Adds NSIS.InstallOptions.ini file. Sep 3, 2018 Updates pn2icon recommended version. Sep 11, 2018
build.bat Fix rm command. May 28, 2019
nextcloud.nsi Adds no restart to vcredist installation. Jan 25, 2019
upload.bat Updates upload script. Sep 3, 2018

How to build the desktop client on Windows


Install list

CMake options

For the desktop client (Release/Debug):

cmake -G "Visual Studio 15 2017 Win64" .. -DCMAKE_INSTALL_PREFIX=..\..\install -DCMAKE_BUILD_TYPE=Release

For qtkeychain:

cmake -G "Visual Studio 15 2017 Win64" .. -DCMAKE_INSTALL_PREFIX=c:\qt5keychain

And then (Release/Debug):

cmake --build . --config Release --target install


Missing dll's and files even after running windeployqt

  • Qt5CoreD.dll (C:\Qt\Qt5.11.1\msvc2017_64\bin)
  • MSVCP140D.dll (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.14.26405\debug_nonredist\x64\Microsoft.VC141.DebugCRT)
  • VCRUNTIME140D.dll (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.14.26405\debug_nonredist\x64\Microsoft.VC141.DebugCRT)
  • ocsync.dll (nc install path/bin/nextcloud)
  • libcrypto-1_1-x86.dll (C:\OpenSSL-Win64\bin)
  • ucrtbased.dll (C:\Windows/System32)
  • C:\qt5keychain\bin\qt5keychain.dll needs to be copied to C:\Qt\5.11.1\msvc2017_64\bin
  • MSVCR120.dll (C:\OpenSSL-Win64\bin)
  • sync-exclude.lst (C:\Users\IEUser\Desktop\nc\install\config\Nextcloud)
  • had to fetch the extra dll's from (libeay32.dll and ssleay32.dll)


NSIS plugins to install

To upload builds

Git submodules

  • shell_integration

SSH Agent

We are floowing this instruction:

  ForwardAgent yes

Task Scheduler

  • We are using it to schedule the build - the task is exported to the xml DailyBuilds_v01.xml.


  • OPENSSL_PATH (openssl path installation)
  • P12_KEY_PASSWORD (certificate key password used to sign the installer)
  • PROJECT_PATH (nextcloud source code path)
  • QT_PATH (qt installation path)
  • SFTP_SERVER (server url)
  • SFTP_USER (server user)
  • VCINSTALLDIR (Visual Code installation path)
  • Png2ico_EXECUTABLE (png2ico installation path)
  • QTKEYCHAIN_LIBRARY (path-to-qt5keychain-folder/lib/qt5keychain.lib)
  • QTKEYCHAIN_INCLUDE_DIR (path-to-qt5keychain-folder/include/qt5keychain)
  • OPENSSL_ROOT_DIR (path-to-openssl-folder)
  • OPENSSL_INCLUDE_DIR (path-to-openssl-folder/include)
  • OPENSSL_LIBRARIES (path-to-openssl-folder/lib)

To create the installer



build.bat will call nextcloud.nsi that in the end will call upload.bat after signing the installer.

You can’t perform that action at this time.