# 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