From 680504ee6b2188c7ba3becb7f77e8a3c8fac43c7 Mon Sep 17 00:00:00 2001 From: Vitalii Date: Sat, 18 Apr 2026 20:41:27 +0300 Subject: [PATCH] fix: add prepare-web.sh support for both python and go yq versions --- scripts/prepare-web.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/prepare-web.sh b/scripts/prepare-web.sh index b4ec1889..25de197b 100755 --- a/scripts/prepare-web.sh +++ b/scripts/prepare-web.sh @@ -2,7 +2,7 @@ # Compile Vodozemac for web version=$(yq ".dependencies.flutter_vodozemac" < pubspec.yaml) -version=$(expr "$version" : '\^*\(.*\)') +version=$(printf "%s" "$version" | tr -d '"^') git clone https://github.com/famedly/dart-vodozemac.git -b ${version} .vodozemac cd .vodozemac cargo install flutter_rust_bridge_codegen @@ -16,7 +16,7 @@ dart compile js ./web/native_executor.dart -o ./web/native_executor.js -m # Download native_imaging for web: version=$(yq ".dependencies.native_imaging" < pubspec.yaml) -version=$(expr "$version" : '\^*\(.*\)') +version=$(printf "%s" "$version" | tr -d '"^') curl -L "https://github.com/famedly/dart_native_imaging/releases/download/v${version}/native_imaging.zip" > native_imaging.zip unzip native_imaging.zip mv js/* web/