A complete tool for packaging and publishing your Flutter apps.
English | 简体中文
The full documentation can be found on distributor.leanflutter.org.
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_msix - Create a
msix
package for your app. - app_package_maker_zip - Create a
zip
package for your app. - app_package_publisher_appcenter - Publish your app to
appcenter
. - app_package_publisher_appstore - Publish your app to
appstore
. - app_package_publisher_fir - Publish your app to
fir
. - app_package_publisher_firebase - Publish your app to
firebase
. - app_package_publisher_github - Publish your app to
github
release. - app_package_publisher_pgyer - Publish your app to
pgyer
. - app_package_publisher_qiniu - Publish your app to
qiniu
.
dart pub global activate flutter_distributor
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:
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:
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.
flutter_distributor release --name dev