AppFlowy/doc/BUILD_ON_WNIDOWS.md
Alex to 5ee37972ef #19 - [FR] Successfully to build workable version for windows (Rust target: x86_64-pc-windows-msvc), request to contribute
1. scripts\flowy-tool\Cargo.toml
  - Remove shell dependency which does not support windows
2. scripts\makefile\env.toml
  - Enhance environment checking for building app on windows
3. scripts\flowy-tool\src\util\file.rs
  - Trim unnecessary prefix "\\?\" for std::fs::canonicalize(root) on windows
4.  scripts\makefile\flutter.toml
  - add dependency for "tasks.appflowy-windows" to copy dart_ffi.dll from rust build folder to flutter build folder
5. scripts\flowy-tool\src\proto\proto_gen.rs
  - Remove dir by using platform independent code rather than calling *nix shell command
6. scripts\makefile\protobuf.toml
  - tasks.gen_dart_event: call duckscript to gen_dart_event on windows platform
2021-11-17 21:45:18 +08:00

1.4 KiB

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

Step 1:

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

Step 2:

Note: Please run the commands in windows cmd rather than powershell

  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
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
cargo make -p development-windows pb
  1. Build flowy-sdk-dev (dart-ffi)
cargo make --profile development-windows flowy-sdk-dev
  1. Build app_flowy
cargo make -p development-windows appflowy-windows

Step 3: Server side application

Note: You can launch postgresql server by using docker container

TBD