Skip to content

Building from Source

n1th1n-19 edited this page Nov 11, 2026 · 1 revision

Building from source

Requirements

  • Flutter, version pinned in .fvmrc (currently 3.41.9). Install it with fvm and use fvm flutter / fvm dart instead of a system-wide Flutter to avoid version mismatches.
  • Rust. The toolchain is set in rust-toolchain.toml.

Run

git clone https://github.com/n1th1n-19/duck-share.git
cd duck-share/app
fvm flutter pub get
fvm dart run build_runner build -d
fvm dart run slang
fvm flutter run

build_runner generates dart_mappable, freezed, flutter_gen and mockito code; slang generates the translations.

Build

Run from the app directory.

Platform Command
Android APK fvm flutter build apk
Android App Bundle fvm flutter build appbundle
iOS fvm flutter build ipa
macOS fvm flutter build macos
Windows fvm flutter build windows (MSIX: fvm flutter pub run msix:create)
Linux fvm flutter build linux (AppImage: appimage-builder --recipe AppImageBuilder.yml)

Debug builds on Android use the package com.duck.daystack.debug, so they install next to a release build.

Release APK signing

Release APKs need a signing key. Create app/android/key.properties with your keystore, or sign with the debug key:

// File: app/android/app/build.gradle
buildTypes {
  release {
    signingConfig signingConfigs.debug // using debug signing
  }
}

Rust crates

The core crate gates most code behind Cargo features. Always build and test it with --features full:

cd packages/core
cargo test --features full
cargo clippy --features full

A bare cargo build in packages/core fails; that is expected.

App icons

The logo and every platform icon are generated from support/branding/duck.py:

python support/branding/export.py app

Official releases

Pushing a tag like v1.18.2-duck.3 runs the "Android release" workflow (.github/workflows/android_release.yml). It builds split-per-ABI and universal APKs, checks that each is signed with the Duck Share key, writes SHA256SUMS.txt and publishes a GitHub pre-release.

app/pubspec.yaml's version must match #define MyAppVersion in support/scripts/compile_windows_exe-inno.iss and the version in cli/Cargo.toml; CI fails on a mismatch.

Clone this wiki locally