🐧Building on Linux
Notes:
The following steps are verified on
You may need to disable hardware 3D acceleration if you are running AppFlowy in a VM. Otherwise, certain GL failures will prevent the app from launching.
This guide assumes that you are using the bash shell on Linux. You can however, replicate these steps on zsh or other alternative Linux terminal shells, with minor alterations.
sudo dnf install openssl-develrpm-ostree upgrade
rpm-ostree install openssl1.1.x86_64wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.debsudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.debStep 1: Get the source code
Clone the source code from our Github project.

Step 2: Install your build environment
Install system prerequisites:

Install flutter (three different methods):
Method 1: Install flutter according to https://docs.flutter.dev/get-started/install/linux. Make sure to install flutter in a directory that is appropriate for you.
Method 2: You can use the code below to install flutter manually on your linux system.

Method 3: You can also use a runtime version manager like asdf or a flutter-specific version manager to install flutter on your system. Assuming you are using the bash shell, follow these steps:
Clone asdf.
Add the path to asdf and enable asdf auto-completion in your shell.
Install flutter via asdf and set it as your local runtime at the AppFlowy source directory (
xx/AppFlowy/).

Setting up your development environment:
Run the setup script from the base directory. (Note: You can skip this step if you installed rust using asdf and set it as the local runtime inside thexx/AppFlowy/ source.)

xx/AppFlowy/frontend/scripts/install_dev_env/.
"Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not on your path."Step 3: Build AppFlowy (Flutter GUI application)
Change your path to the frontend directory.
Building the AppFlowy binary:
You will find the binary in frontend/appflowy_flutter/product/[version in x.x.x]/linux/[Binary type (Release/ Debug)]/AppFlowy/.

Step 4: Run the application
For running the release binary:
For running the debug binary:
A new window as shown below will show up after you run the application:

If using a virtual machine, run the Linux GUI application through x11 on windows (use MobaXterm) for instance:
export DISPLAY=localhost:10
Miscellaneous: Running the application without building (using VS Code)
Open the
frontendfolder located atxx/AppFlowy/with VS Code.Go to the Run and Debug tab and then click AF-desktop: Clean + Rebuild All for the first time running.

Last updated
Was this helpful?

