fix: Remove quotes from version output

This commit is contained in:
Alexey 2026-03-20 14:18:20 +03:00
commit cc230c2222

View file

@ -1,7 +1,7 @@
#!/bin/sh -ve
# Compile Vodozemac for web
version=$(yq ".dependencies.flutter_vodozemac" < pubspec.yaml)
version=$(yq ".dependencies.flutter_vodozemac" < pubspec.yaml | tr -d '"')
version=$(expr "$version" : '\^*\(.*\)')
git clone https://github.com/famedly/dart-vodozemac.git -b ${version} .vodozemac
cd .vodozemac
@ -15,10 +15,10 @@ flutter pub get
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=$(yq ".dependencies.native_imaging" < pubspec.yaml | tr -d '"')
version=$(expr "$version" : '\^*\(.*\)')
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/
rmdir js
rm native_imaging.zip
rm native_imaging.zip