|
@@ -1,26 +1,31 @@
|
|
|
-## How to build on Linux, please follow these simple steps.
|
|
|
+# How to build on Linux, please follow these simple steps.
|
|
|
|
|
|
-**Step 1:**
|
|
|
+## Step 1: Get source code
|
|
|
+------------------------------
|
|
|
|
|
|
```shell
|
|
|
git clone https://github.com/AppFlowy-IO/appflowy.git
|
|
|
```
|
|
|
|
|
|
-**Step 2:**
|
|
|
+## Step 2: Build app_flowy (Flutter GUI application)
|
|
|
+------------------------------
|
|
|
|
|
|
Note:
|
|
|
-1. Following steps are verified on
|
|
|
+* Following steps are verified on
|
|
|
- [x] lubuntu 20.04 - X86_64
|
|
|
- [ ] ubuntu 20.04 - aarch64
|
|
|
- [ ] redhat - X86_64
|
|
|
- [ ] Arch Linux - X86_64
|
|
|
- [ ] Deepin - X86_64
|
|
|
- [ ] Raspberry Pi OS - aarch64
|
|
|
-2. You may need to disable hardware 3D acceleration if you are running in a VM. Otherwise certain GL failures will prevent app from launching
|
|
|
+* You may need to disable hardware 3D acceleration if you are running in a VM. Otherwise certain GL failures will prevent app from launching
|
|
|
|
|
|
+### Detail steps
|
|
|
1. Install pre-requests
|
|
|
```shell
|
|
|
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
|
|
|
```
|
|
|
2. Install rust on Linux
|
|
|
```shell
|
|
@@ -46,7 +51,7 @@ flutter doctor
|
|
|
```
|
|
|
5. Install cargo make
|
|
|
```shell
|
|
|
-cd appflowy
|
|
|
+cd appflowy/frontend
|
|
|
cargo install --force cargo-make
|
|
|
```
|
|
|
6. Install duckscript
|
|
@@ -85,7 +90,8 @@ cargo make -p production-linux-x86 appflowy-linux
|
|
|
# ./app_flowy
|
|
|
```
|
|
|
|
|
|
-**Step 3:** Server side application
|
|
|
+## Step 3: Build Server side application (optional if you don't need to host web service locally)
|
|
|
+------------------------------
|
|
|
|
|
|
Note: You can launch postgresql server by using docker container
|
|
|
|