package: name: flutter-sdk version: 3.38.9 epoch: 0 description: "Flutter SDK for web/WASM builds" copyright: - license: BSD-3-Clause environment: contents: keyring: - https://packages.wolfi.dev/os/wolfi-signing.rsa.pub repositories: - https://packages.wolfi.dev/os packages: - wolfi-baselayout - busybox - curl - git - xz pipeline: - runs: | FLUTTER_VERSION="${{package.version}}" # Download Flutter SDK tarball (linux x86_64 only for now) curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_${FLUTTER_VERSION}-stable.tar.xz" \ -o /tmp/flutter.tar.xz # Install to package destination mkdir -p "${{targets.destdir}}/opt" tar xf /tmp/flutter.tar.xz -C "${{targets.destdir}}/opt" # Mark git safe directory git config --global --add safe.directory /opt/flutter # Configure for web-only "${{targets.destdir}}/opt/flutter/bin/flutter" config --enable-web \ --no-enable-android --no-enable-ios \ --no-enable-linux-desktop --no-enable-macos-desktop \ --no-enable-windows-desktop # Precache web artifacts "${{targets.destdir}}/opt/flutter/bin/flutter" precache --web \ --no-android --no-ios --no-linux \ --no-macos --no-windows --no-fuchsia --no-universal rm /tmp/flutter.tar.xz