Skip to content

Build Seafile Client for Windows

The following compilation steps are only valid for versions 8.0 and above.

The development environment

Before compiling and developing, you need to install and configure the development environment

  1. Microsoft Visual Studio 2019

  2. Package manager tools: vcpkg

  3. Install wixwix

  4. Install paraffin paraffin

Installing third-party libraries

glib, curl, openssl, libevent, jansson, sqlite3, pthreads, getopt-win32
Install curl:`vcpkg.exe install curl[core,openssl]:x64-windows`

Install and configure Qt:

  1. Search and install Qt Visual Studio tools in the Visual Studio plugin repository
  2. Install Qt, choose qt-opensource-windows-x86-5.13.1.exe (QT download link).
  3. Set Qt Visual Studio Tools. The setting is to tell Visual Studio 2019 Qt installation directory. Set Qt Version in Extension->Qt VS Tools-> Qt Options in Visual Studio 2019. Here you need to select the bin directory of Qt. The path of the parent directory. After configuring the Qt installation directory, you also need to set the Qt version used in the project properties of seafile-client. Select properties in the right-click menu of the project, and then select "Qt Project Settings" in the properties dialog box, and select the Version name set in Qt VS Tools just now for Qt Installation.

How to make msi

For example, if you want to compile seafile 8.0.0, you can package it like this.

First clone the libsearpc seafile seafile-client code to a directory.

git clone
git clone
git clone

Then pull the code of the specified tag and build.

cd libsearpc
git pull origin master:master
git reset v8.0.0 --hard

cd ../seafile-client
git pull origin master:master
git reset v8.0.0 --hard

cd ../seafile
git pull origin master:master
git reset v8.0.0 --hard

cd scripts/build
python 8.0.0