fix: add prepare-web.sh support for both python and go yq versions

This commit is contained in:
Vitalii 2026-04-18 20:41:27 +03:00
commit 680504ee6b
No known key found for this signature in database
GPG key ID: 75136F789431F453

View file

@ -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/