Skip to content

Commit

Permalink
launcher: pin to Flutter 3.19.6
Browse files Browse the repository at this point in the history
Working around shader issue on Pi:

flutter/flutter#152297
  • Loading branch information
Saviq committed Jul 25, 2024
1 parent 17bd048 commit e149fa7
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,14 @@ parts:

launcher:
source: launcher
plugin: flutter
flutter-target: lib/main.dart
plugin: nil
build-packages:
- clang
- curl
- git
- cmake
- ninja-build
- unzip
- libgtk-layer-shell-dev
- libgtk-3-dev
stage-packages:
Expand All @@ -215,5 +219,10 @@ parts:
if [[ "${CRAFT_ARCH_BUILD_FOR}" != @(amd64|arm64) ]]; then
install --mode 755 --no-target-directory ubuntu_frame_launcher.fake ${CRAFT_PART_INSTALL}/ubuntu_frame_launcher
else
craftctl default
git clone -b 3.19.6 https://github.com/flutter/flutter.git ${CRAFT_PART_BUILD}/flutter-distro
export PATH=${CRAFT_PART_BUILD}/flutter-distro/bin:$PATH
flutter config --no-enable-{web,ios,android,fuchsia,windows-desktop,macos-desktop}
flutter pub get
flutter build linux --release --verbose --target lib/main.dart
cp -r build/linux/*/release/bundle/* ${CRAFT_PART_INSTALL}
fi

0 comments on commit e149fa7

Please sign in to comment.