From 7a6faca8803686945b6b532084fa48d70771ddc8 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Mon, 26 Feb 2024 07:36:28 +0100 Subject: [PATCH] refactor(tool): Read .fvmrc file Signed-off-by: provokateurin --- .cspell/tools.txt | 1 + tool/build-app.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.cspell/tools.txt b/.cspell/tools.txt index e348f41390d..d135e9991ca 100644 --- a/.cspell/tools.txt +++ b/.cspell/tools.txt @@ -22,6 +22,7 @@ exiftool extglob freedesktop fullpath +fvmrc gboolean gchar genhtml diff --git a/tool/build-app.sh b/tool/build-app.sh index 5b4b83f6b62..076da7c01f3 100755 --- a/tool/build-app.sh +++ b/tool/build-app.sh @@ -36,7 +36,7 @@ if [[ "$target" == "linux/arm64" ]] || [[ "$target" == "linux/amd64" ]]; then --platform "$target" \ --progress plain \ --tag "$tag" \ - --build-arg="FLUTTER_VERSION=$(jq ".flutterSdkVersion" -r < .fvm/fvm_config.json | cut -d "@" -f 1)" \ + --build-arg="FLUTTER_VERSION=$(jq ".flutter" -r < .fvmrc)" \ $(cache_build_args "$tag") \ -f "tool/build/Dockerfile.$os" \ ./tool/build