The qiniu target publishes your package artifacts to the qiniu.com.
需要设置一些环境变量才能正确运行。
export QINIU_ACCESS_KEY="your access key"export QINIU_SECRET_KEY="your secret key"
运行:
flutter_distributor publish \ --path dist/1.0.0+1/hello_world-1.0.0+1-android.apk \ --targets qiniu \ --qiniu-bucket your-bucket \ --qiniu-bucket-domain https://dl.example.com \ --qiniu-savekey-prefix myall/
distribute_options.yaml
variables: QINIU_ACCESS_KEY: your access key QINIU_SECRET_KEY: your secret keyoutput: dist/releases: - name: dev jobs: - name: release-dev-android package: platform: android target: apk # Publish to qiniu publish: target: qiniu args: bucket: your bucket bucket-domain: https://dl.example.com savekey-prefix: myapp/
flutter_distributor release --name dev