Repository navigation
Building from Source
- Flutter, version pinned in
.fvmrc(currently3.41.9). Install it with fvm and usefvm flutter/fvm dartinstead of a system-wide Flutter to avoid version mismatches. -
Rust. The toolchain is set in
rust-toolchain.toml.
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 runbuild_runner generates dart_mappable, freezed, flutter_gen and mockito code; slang generates the translations.
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 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
}
}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 fullA bare cargo build in packages/core fails; that is expected.
The logo and every platform icon are generated from support/branding/duck.py:
python support/branding/export.py appPushing 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.
Duck Share · Issues · Apache License 2.0 · Based on LocalSend by Tien Do Nam and contributors