diff --git a/scripts/prepare-web.sh b/scripts/prepare-web.sh index b4ec1889..9be10c7f 100755 --- a/scripts/prepare-web.sh +++ b/scripts/prepare-web.sh @@ -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 \ No newline at end of file +rm native_imaging.zip