leanflutter / flutter_distributor

An all-in-one Flutter application packaging and distribution tool, providing you with a one-stop solution to meet various distribution needs.
https://distributor.leanflutter.dev/
MIT License
812 stars 114 forks source link

Support custom `artifact_name` and `channel` parameter in package command. #60

Closed lijy91 closed 2 years ago

lijy91 commented 2 years ago

My solution is to provide custom artifact_name and add arch parameter in package command.

output: dist/
artifact_name: "{{name}}{{#channel}}-{{channel}}{{/channel}}-{{version}}}-{{platform}}.{{ext}}"
releases:
  - name: release
    jobs:
      - name: arm32
        package:
          platform: android
          target: apk
          build_args:
            target-platform: android-arm
      - name: arm64
        package:
          platform: android
          arch: arm64
          target: apk
          build_args:
            target-platform: android-arm64

_Originally posted by @lijy91 in https://github.com/leanflutter/flutter_distributor/issues/53#issuecomment-1077448501_

lijy91 commented 2 years ago

See https://mustache.github.io/mustache.5.html for string template format.

lijy91 commented 2 years ago

Supported, will be released in the next version