📘 We decided to use https://community.kde.org/Craft to get all binary dependencies of the desktop client.
- Follow the instructions in https://community.kde.org/Get_Involved/development/Windows
- When asked for
where you want us to install Craft, give the path toC:\Craft64
C:\Craft64 is in case you are trying to create a installer using the scripts from https://github.com/nextcloud/client-building/:
👀 nextcloud/client-building/blob/common.inc.bat line 14
if "%BUILD_ARCH%" == "Win64" ( set "CRAFT_PATH=c:\Craft64" )
Otherwise you can keep the install path suggested by Craft.
- Add the blueprints from this repository:
$ craft --add-blueprint-repository [git]https://github.com/nextcloud/desktop-client-blueprints.git
$ craft craft
- Install all desktop client dependencies:
$ craft --install-deps nextcloud-client
-
Create the folder
resourcesin the Craft install path. -
Copy the following files from the Craft install path
binfolder theresourcesfolder:
- icudtl.dat
- qtwebengine_devtools_resources.pak
- qtwebengine_resources.pak
- qtwebengine_resources_100p.pak
- qtwebengine_resources_200p.pak
- Now when building the desktop client, you can point cmake to the Craft install folder with:
-DCMAKE_PREFIX_PATH=%CRAFT_PATH%
👀 nextcloud/client-building/single-build-desktop.bat line 142:
cmake "-G%CMAKE_GENERATOR%" .. -DMIRALL_VERSION_SUFFIX="%VERSION_SUFFIX%" -DWITH_CRASHREPORTER=OFF -DBUILD_UPDATER=%BUILD_UPDATER% -DBUILD_WIN_MSI=%BUILD_INSTALLER_MSI% -DMIRALL_VERSION_BUILD="%BUILD_DATE%" -DCMAKE_INSTALL_PREFIX="%MY_INSTALL_PATH%" -DCMAKE_BUILD_TYPE="%BUILD_TYPE%" -DCMAKE_PREFIX_PATH=%CRAFT_PATH% -DPng2Ico_EXECUTABLE="%Png2Ico_EXECUTABLE%" %CMAKE_EXTRA_FLAGS_DESKTOP%
TBD.
TBD.