fix: Remove quotes from version output
This commit is contained in:
parent
c0888d47be
commit
cc230c2222
1 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh -ve
|
#!/bin/sh -ve
|
||||||
|
|
||||||
# Compile Vodozemac for web
|
# Compile Vodozemac for web
|
||||||
version=$(yq ".dependencies.flutter_vodozemac" < pubspec.yaml)
|
version=$(yq ".dependencies.flutter_vodozemac" < pubspec.yaml | tr -d '"')
|
||||||
version=$(expr "$version" : '\^*\(.*\)')
|
version=$(expr "$version" : '\^*\(.*\)')
|
||||||
git clone https://github.com/famedly/dart-vodozemac.git -b ${version} .vodozemac
|
git clone https://github.com/famedly/dart-vodozemac.git -b ${version} .vodozemac
|
||||||
cd .vodozemac
|
cd .vodozemac
|
||||||
|
|
@ -15,10 +15,10 @@ flutter pub get
|
||||||
dart compile js ./web/native_executor.dart -o ./web/native_executor.js -m
|
dart compile js ./web/native_executor.dart -o ./web/native_executor.js -m
|
||||||
|
|
||||||
# Download native_imaging for web:
|
# Download native_imaging for web:
|
||||||
version=$(yq ".dependencies.native_imaging" < pubspec.yaml)
|
version=$(yq ".dependencies.native_imaging" < pubspec.yaml | tr -d '"')
|
||||||
version=$(expr "$version" : '\^*\(.*\)')
|
version=$(expr "$version" : '\^*\(.*\)')
|
||||||
curl -L "https://github.com/famedly/dart_native_imaging/releases/download/v${version}/native_imaging.zip" > native_imaging.zip
|
curl -L "https://github.com/famedly/dart_native_imaging/releases/download/v${version}/native_imaging.zip" > native_imaging.zip
|
||||||
unzip native_imaging.zip
|
unzip native_imaging.zip
|
||||||
mv js/* web/
|
mv js/* web/
|
||||||
rmdir js
|
rmdir js
|
||||||
rm native_imaging.zip
|
rm native_imaging.zip
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue