Building on macOS
Last updated
Was this helpful?
Last updated
Was this helpful?
Note:
If you encounter any issues, have a look at first. If your issue is not included in the page, please create an or ask on .
You should fork the code instead if you wish to submit code to AppFlowy. You'll find information on that in Setting Up Your Repositories
Follow the instructions to install Flutter.
It will ask you to run flutter doctor
to check any dependencies you need to install to complete the setup.
It is not necessary to install Android toolchain and Android studio to run AppFlowy.
However, CocoaPods and VS Code are required.
Make sure you also install the & extensions in VS Code.
Run the setup script from the base directory
It will guide you through to install Rust, which is required by AppFlowy
Make sure to restart your terminal and VS Code
Open the frontend
folder located at xx/AppFlowy/frontend
with VS Code. It is important not to open the root folder, as that will not give access to the appropriate debug commands.
Go to the Run and Debug tab and then click AF-desktop: Clean + Rebuild All for the first time running.
Go to the AppFlowy/frontend/ directory.
Run the following command to build the binary depending on your architecture.
The scripts are located in the AppFlowy/frontend/Makefile.toml file.
The resulting binary file is located in AppFlowy/frontend/appflowy_flutter/product/x.x.x/[OS]/Release/AppFlowy/
.
FYI, AppFlowy uses to construct the build scripts. It is important that you add (dart) pub
to $PATH, otherwise VS Code may error out. Add the following to your .bashrc
or .zshrc
in $HOME
:
Open xx/AppFlowy/frontend/appflowy_flutter/lib/main.dart
and then check the device selection:
If you encounter any issues, have a look at first. If your issue is not included in the page, please create an or ask on .