2021-11-21 01:34:32 +00:00
|
|
|
## How to build on Windows, please follow these simple steps.
|
2021-11-17 13:45:18 +00:00
|
|
|
|
2021-11-21 01:34:32 +00:00
|
|
|
## Step 1: Get source code
|
|
|
|
------------------------------
|
2021-11-17 13:45:18 +00:00
|
|
|
|
|
|
|
```shell
|
|
|
|
git clone https://github.com/AppFlowy-IO/appflowy.git
|
|
|
|
```
|
|
|
|
|
2021-11-21 01:34:32 +00:00
|
|
|
## Step 2: Build app_flowy (Flutter GUI application)
|
|
|
|
------------------------------
|
2021-11-17 13:45:18 +00:00
|
|
|
|
2021-11-21 01:34:32 +00:00
|
|
|
Note:
|
|
|
|
* Please run the commands in windows cmd rather than powershell
|
|
|
|
* Following steps are verified on
|
|
|
|
- [x] Windows 10 X86_64
|
|
|
|
- [ ] Windows 10 arm64
|
|
|
|
- [ ] Windows 11 X86_64
|
|
|
|
- [ ] Windows 11 arm64
|
2021-11-17 13:45:18 +00:00
|
|
|
|
2021-11-21 01:34:32 +00:00
|
|
|
### Detail steps
|
2021-11-17 13:45:18 +00:00
|
|
|
1. Install Visual Studio 2019 community. See: https://visualstudio.microsoft.com/downloads/
|
|
|
|
- Note: Didn't test Visual Studio 2022. It should also work.
|
|
|
|
2. Install choco according to https://chocolatey.org/install
|
|
|
|
3. Install vcpkg according to https://github.com/microsoft/vcpkg#quick-start-windows. Make sure to add vcpkg installation folder to PATH env var.
|
|
|
|
4. Install flutter according to https://docs.flutter.dev/get-started/install/windows
|
|
|
|
```shell
|
|
|
|
flutter channel dev
|
|
|
|
```
|
|
|
|
5. Install rust
|
|
|
|
```shell
|
|
|
|
choco install rustup.install
|
|
|
|
rustup toolchain install nightly
|
|
|
|
```
|
|
|
|
6. Install cargo make
|
|
|
|
```shell
|
2021-11-21 01:34:32 +00:00
|
|
|
cd appflowy/frontend
|
2021-11-17 13:45:18 +00:00
|
|
|
cargo install --force cargo-make
|
|
|
|
```
|
|
|
|
7. Install duckscript
|
|
|
|
```shell
|
|
|
|
cargo install --force duckscript_cli
|
|
|
|
```
|
|
|
|
8. Check pre-request
|
|
|
|
```shell
|
|
|
|
cargo make flowy_dev
|
|
|
|
```
|
2021-11-21 05:50:18 +00:00
|
|
|
9. Generate protobuf for dart (optional, if you modify the shared-lib's entities)
|
2021-11-17 13:45:18 +00:00
|
|
|
```shell
|
|
|
|
cargo make -p development-windows pb
|
|
|
|
```
|
2021-11-19 03:13:07 +00:00
|
|
|
10. Build flowy-sdk (dart-ffi)
|
2021-11-17 13:45:18 +00:00
|
|
|
```shell
|
2021-11-23 00:28:59 +00:00
|
|
|
# for development
|
2021-11-23 09:45:18 +00:00
|
|
|
cargo make --profile development-windows-x86 flowy-sdk-dev
|
2021-11-19 03:13:07 +00:00
|
|
|
# for production
|
2021-11-23 09:45:18 +00:00
|
|
|
cargo make --profile production-windows-x86 flowy-sdk-release
|
2021-11-17 13:45:18 +00:00
|
|
|
```
|
|
|
|
11. Build app_flowy
|
|
|
|
```shell
|
2021-11-23 00:28:59 +00:00
|
|
|
# for development
|
2021-11-23 09:45:18 +00:00
|
|
|
cargo make -p development-windows-x86 appflowy-windows-dev
|
2021-11-19 03:13:07 +00:00
|
|
|
# for production
|
2021-11-23 09:45:18 +00:00
|
|
|
cargo make -p production-windows-x86 appflowy-windows
|
2021-11-17 13:45:18 +00:00
|
|
|
```
|
|
|
|
|
2021-11-21 01:34:32 +00:00
|
|
|
## Step 3: Build Server side application (optional if you don't need to host web service locally)
|
|
|
|
------------------------------
|
2021-11-17 13:45:18 +00:00
|
|
|
|
|
|
|
Note: You can launch postgresql server by using docker container
|
|
|
|
|
|
|
|
TBD
|