Note:
There's no point continuing if this doesn't work for you. Feel free to ask questions on our Discord so that we may refire this document and make the process as easy as possible for you.
Install system prerequisites
#Ubuntu
sudo apt-get install curl build-essential libsqlite3-dev libssl-dev clang cmake ninja-build pkg-config libgtk-3-dev unzip
# optional, for generating protobuf in step 8 only
sudo apt-get install protobuf-compiler
#Arch
yay -S curl base-devel sqlite openssl clang cmake ninja pkg-config gtk3 unzip
# optional, for generating protobuf in step 8 only
#(Caution: protobuf does not work on Arch at the moment.)
#yay -S protobuf-compiler
Install rust on Linux
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustup toolchain install nightly
rustup default nightly
shell
git clone https://github.com/flutter/flutter.git
cd flutter
echo "export PATH=\$PATH:"`pwd`"/bin" >> ~/.profile
export PATH="$PATH:`pwd`/bin"
flutter channel stable
Enable linux desktop
flutter config --enable-linux-desktop
Fix any problems reported by flutter doctor
flutter doctor
git clone https://github.com/AppFlowy-IO/appflowy.git
However, you should fork the code instead if you wish to submit patches.
Change to the frontend directory
cd [appflowy/]frontend
shell
cargo install --force cargo-make
Install duckscript
cargo install --force duckscript_cli
shell
cargo make flowy_dev
[Optional] Generate protobuf for dart (if you wish to modify the shared-lib's entities)
# Caution : Not working on Arch Linux yet
# Make sure to install protobuf-compiler at first. See step 1
cargo make -p development-linux-x86 pb
[Optional] Build flowy-sdk-dev (dart-ffi) ```shell
cargo make --profile development-linux-x86 flowy-sdk-dev
cargo make --profile production-linux-x86 flowy-sdk-release ```
Build app_flowy ```shell
cargo make -p development-linux-x86 appflowy-linux-dev
cargo make -p production-linux-x86 appflowy-linux
## Step 4: Run the application
------------------------------
cd [frontend/]app_flowy/product/0.0.2/linux/Debug/AppFlowy/app_flowy ./app_flowy ```
Note: You can launch postgresql server by using docker container
TBD