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
|
plugin: flutter
|
||||||
source: .
|
source: .
|
||||||
override-build: |
|
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:
|
# Workaround for Flutter build error:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
craftctl default
|
craftctl default
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue