fix: add prepare-web.sh support for both python and go yq versions
This commit is contained in:
parent
0da56dc0f9
commit
680504ee6b
1 changed files with 2 additions and 2 deletions
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue