mirror of
https://github.com/chenasraf/dart_script_runner.git
synced 2026-05-18 01:49:04 +00:00
22 lines
659 B
YAML
22 lines
659 B
YAML
# add a config to your pubspec.yaml
|
|
script_runner:
|
|
shell: /bin/zsh
|
|
scripts:
|
|
- test: dart test
|
|
- lint-fix: dart fix --apply
|
|
- name: build:apk
|
|
cmd: flutter build apk
|
|
- name: build:ipa
|
|
cmd: flutter build ipa
|
|
- name: build:all
|
|
cmd: build:apk && build:ipa
|
|
- name: push:apk
|
|
suppress_header_output: true
|
|
cmd: |-
|
|
name=$(dart run btool get packageName)
|
|
version=$(dart run btool get packageVersion)
|
|
source="$(pwd)/build/app/outputs/flutter-apk/app-release.apk"
|
|
target="/sdcard/Download/$name-$version.apk"
|
|
echo "adb push $source $target"
|
|
adb push $source $target
|