build: Use correct flutter version in snapcraft

This commit is contained in:
krille-chan 2025-02-19 10:19:07 +01:00
parent 647b743b0a
commit cc498e9922
No known key found for this signature in database

View file

@ -65,6 +65,11 @@ parts:
plugin: flutter
source: .
override-build: |
# Switch to correct Flutter version
source .github/workflows/versions.env
flutter_base=$(dirname $(dirname $(which flutter)))
git -C $flutter_base checkout $FLUTTER_VERSION
flutter doctor
# Workaround for Flutter build error:
rm -rf build
craftctl default