pantry/projects/flutter.dev/package.yml

48 lines
1.4 KiB
YAML
Raw Normal View History

versions:
github: flutter/flutter/tags
warnings:
- vendored
platforms:
- darwin
- linux/x86-64 # no SDK for linux/aarch64
dependencies:
git-scm.org: '*'
tukaani.org/xz: '*'
2023-12-13 22:51:00 +03:00
gnu.org/which: '*' # flutter create uses which
linux:
curl.se: '*'
info-zip.org/zip: '*'
info-zip.org/unzip: '*'
build:
2023-12-13 22:51:00 +03:00
working-directory: '{{prefix}}'
script:
- run: curl -L "$DIST" | tar Jxf -
if: linux
- run: |
curl -o flutter_darwin.zip "$DIST"
unzip flutter_darwin.zip
rm flutter_darwin.zip
if: darwin
2023-12-13 22:51:00 +03:00
- run: |
ln -s ../flutter/bin/flutter flutter
ln -s ../flutter/bin/dart dart
2023-12-13 22:51:00 +03:00
working-directory: '{{prefix}}/bin'
env:
linux:
DIST: https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_{{version}}-stable.tar.xz
darwin/aarch64:
DIST: https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_arm64_{{version}}-stable.zip
darwin/x86-64:
DIST: https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_{{version}}-stable.zip
provides:
- bin/flutter
- bin/dart
test:
script:
# GHA runners complain about git permissions
- run: git config --global --add safe.directory "{{ prefix }}"/flutter
if: linux
- flutter --version | grep {{version}}
- flutter create test_app | grep "All done!"
- ls test_app/lib | grep "main.dart"