AppFlowy/doc/BUILD_ON_WINDOWS.md
2021-11-23 18:15:33 +08:00

2.0 KiB

How to build on Windows, please follow these simple steps.

Step 1: Get source code


git clone https://github.com/AppFlowy-IO/appflowy.git

Step 2: Build app_flowy (Flutter GUI application)


Note:

  • Please run the commands in windows cmd rather than powershell
  • Following steps are verified on
    • Windows 10 X86_64
    • Windows 10 arm64
    • Windows 11 X86_64
    • Windows 11 arm64

Detail steps

  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
flutter channel dev
  1. Install rust
choco install rustup.install
rustup toolchain install nightly
  1. Install cargo make
cd appflowy/frontend
cargo install --force cargo-make
  1. Install duckscript
cargo install --force duckscript_cli
  1. Check pre-request
cargo make flowy_dev
  1. Generate protobuf for dart (optional, if you modify the shared-lib's entities)
cargo make -p development-windows pb
  1. Build flowy-sdk (dart-ffi)
# for development
cargo make --profile development-windows-x86 flowy-sdk-dev
# for production
cargo make --profile production-windows-x86 flowy-sdk-release
  1. Build app_flowy
# for development
cargo make -p development-windows-x86 appflowy-windows-dev
# for production
cargo make -p production-windows-x86 appflowy-windows

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

TBD