git clone https://github.com/AppFlowy-IO/appflowy.git
Note:
Install prerequisites
sudo apt-get install curl build-essential libsqlite3-dev libssl-dev clang cmake ninja-build pkg-config libgtk-3-dev
# optional, for generating protobuf in step 8 only
sudo apt-get install protobuf-compiler
shell
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustup toolchain install nightly
rustup default nightly
Install flutter according to https://docs.flutter.dev/get-started/install/linux
git clone https://github.com/flutter/flutter.git
cd flutter
echo "export PATH=\$PATH:"`pwd`"/bin" >> ~/.profile
export PATH="$PATH:`pwd`/bin"
flutter channel dev
flutter config --enable-linux-desktop
shell
flutter doctor
Install cargo make
cd appflowy/frontend
cargo install --force cargo-make
shell
cargo install --force duckscript_cli
Check pre-request
cargo make flowy_dev
shell
cargo make -p development-linux-x86 pb
[Optional] Build flowy-sdk-dev (dart-ffi), step 10 covers this step ```shell
cargo make --profile development-linux-x86 flowy-sdk-dev
cargo make --profile production-linux-x86 flowy-sdk-release
10. Build app_flowy
```shell
# for development
cargo make -p development-linux-x86 appflowy-linux-dev
# for production, find binary from app_flowy/product/<version>/linux/<build type>/AppFlowy/
cargo make -p production-linux-x86 appflowy-linux
# tips
# run Linux GUI application through x11 on windows (use MobaXterm)
# for instance:
# export DISPLAY=localhost:10
# cd app_flowy/product/0.0.2/linux/Release/AppFlowy
# ./app_flowy
Note: You can launch postgresql server by using docker container
TBD