Skip to content

Building from Source

Openza Tasks is built with Flutter and can be compiled for Linux and Windows.

Prerequisites

  • Flutter SDK 3.7.0 or later
  • Dart SDK 3.7.0 or later
  • Rust toolchain (stable)
  • Git

Platform Dependencies

  • Visual Studio 2022 with “Desktop development with C++” workload
  • Install Rust: rustup.rs
  • Install Inno Setup (for installer):
    Terminal window
    winget install JRSoftware.InnoSetup

Rust Toolchain

Install Rust using rustup:

Download and run rustup-init.exe

Build Steps

  1. Clone the repository

    Terminal window
    git clone https://github.com/openza/tasks.git
    cd tasks
  2. Install dependencies

    Terminal window
    flutter pub get
  3. Generate code

    Terminal window
    dart run build_runner build --delete-conflicting-outputs
  4. Build Rust sync engine

    Terminal window
    cd rust; cargo build --release; cd ..
    copy rust\target\release\openza_sync.dll .
  5. Build the application

    Terminal window
    flutter build windows --release
  6. Create installer

    Terminal window
    dart run inno_bundle --release --no-app

The installer will be in build/windows/x64/installer/Release/.

Development Mode

For development with hot reload:

Terminal window
flutter run -d windows