flutter_distributor
A complete tool for packaging and publishing your Flutter apps.
English | 简体中文
Documentation
The full documentation can be found on distributor.leanflutter.org.
Features
These are the available packages in this repository.
- app_package_maker_apk – Create a
apk
package for your app. - app_package_maker_aab – Create a
aab
package for your app. - app_package_maker_deb – Create a
deb
package for your app. - app_package_maker_dmg – Create a
dmg
package for your app. - app_package_maker_exe – Create a
exe
package for your app. - app_package_maker_ipa – Create a
ipa
package for your app. - app_package_maker_zip – Create a
zip
package for your app. - app_package_publisher_fir – Publish your app to
fir
. - app_package_publisher_pgyer – Publish your app to
pgyer
.
Getting Started
Installation
dart pub global activate flutter_distributor
Usage
Add distribute_options.yaml
to your project root directory.
env:
PGYER_API_KEY: 'your api key'
output: dist/
releases:
- name: dev
jobs:
# Build and publish your apk pkg to pgyer
- name: release-dev-android
package:
platform: android
target: apk
build_args:
flavor: dev
target-platform: android-arm,android-arm64
dart-define:
APP_ENV: dev
publish_to: pgyer
# Build and publish your ipa pkg to pgyer
- name: release-dev-ios
package:
platform: ios
target: ipa
build_args:
flavor: dev
export-options-plist: ios/dev_ExportOptions.plist
dart-define:
APP_ENV: dev
publish_to: pgyer
The
build_args
are the args supported by theflutter build
command, please modify it according to your project.
Release Your App
flutter_distributor release --name dev