githubEdit

🪟Building on Windows

Notes:

  • The following steps are verified on

  • Both Windows cmd and powershell can be used for running commands.

  • If you encounter any issues, please have a look at Troubleshootingarrow-up-right first. If your issue is not included in the page, please create an issuearrow-up-right or ask on Discordarrow-up-right.\

If you prefer a video tutorial click here:

video tutorial for building on windows

Step 1: Get the source code

circle-exclamation

Step 2: Install your build environment

  • Enable the specified platform first if you don't enable it before and then select the desktop device.

  • Fix any problems reported by flutter doctor

It is a good idea to check your rustc version after this step, and compare it to the current supported one in AppFlowy. Run the command:

Look for rustc 1.80.1 - You can find the supported version herearrow-up-right.

In case you need to checkout/downgrade your version, you can replace the version number in this command:

  • Install cargo make

circle-info

You probably need to re-open your terminal to get the cargo command in your PATH

  • Install duckscript

  • Add Powershell to the PATH

Add C:\Windows\System32 to the PATH to prevent Powershell build commands crashing.

  • Install openssl

Note: In cse the OpenSSL link resolves to a dead download, you can install OpenSSL from this alternative sourcearrow-up-right. (From https://slproweb.com/arrow-up-right)

  • Install Dart extension for Visual Studio Code

  • Enable the Dart protoc_plugin

  • For Windows 11: Activate Developer Mode

    • Go to Settings > Privacy & Security > switch ON Developer Mode

Step 3: Edit and run the application

[VS Code]

  1. Open the frontend folder located at xx/AppFlowy/frontend with VS Code.

  2. Go to the Run and Debug tab and then click AF-desktop: Clean + Rebuild All for the first time running.

img.png

If you encounter any issues, have a look at Troubleshootingarrow-up-right first. If your issue is not included in the page, please create an issuearrow-up-right or ask on Discordarrow-up-right.

Building in release mode

  1. Go to the AppFlowy/frontend/ directory.

  2. Run the following command to create the binary.

The scripts are located in the AppFlowy/frontend/Makefile.toml file.

The resulting binary file is located in AppFlowy/frontend/appflowy/product/x.x.x/Windows/Release/AppFlowy/.

If using a virtual machine

  • Run Linux GUI application through x11 on windows (use MobaXterm) for instance:

export DISPLAY=localhost:10

Last updated

Was this helpful?