The playstore target publishes your package artifacts to the Google Play.
需要设置一些环境变量才能正确运行。
# 获取你的服务账号密钥 https://cloud.google.com/iam/docs/keys-create-delete?hl=zh-cnexport PLAYSTORE_CREDENTIALS="your service account credentials file path"
Run:
flutter_distributor publish \ --path dist/1.0.0+1/hello_world-1.0.0+1-android.aab \ --targets playstore \ --playstore-package-name 'org.leanflutter.examples.hello_world' / --playstore-track alpha
distribute_options.yaml
output: dist/releases: - name: dev jobs: - name: build-aab package: platform: android target: aab build_args: target-platform: android-arm # Publish to playstore publish: target: playstore args: package-name: org.leanflutter.examples.hello_world track: alpha
运行:
flutter_distributor release --name dev