build: Use correct flutter version in snapcraft
This commit is contained in:
parent
647b743b0a
commit
cc498e9922
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue