fix: prepare-web.sh: Update prepare-web.sh to clone repository conditionally
Clone the dart-vodozemac repository conditionally based on version.
This commit is contained in:
parent
11a26ef81b
commit
05ed8157dc
1 changed files with 4 additions and 2 deletions
|
|
@ -2,7 +2,9 @@
|
||||||
|
|
||||||
version=$(yq ".dependencies.flutter_vodozemac" < pubspec.yaml)
|
version=$(yq ".dependencies.flutter_vodozemac" < pubspec.yaml)
|
||||||
version=$(expr "$version" : '\^*\(.*\)')
|
version=$(expr "$version" : '\^*\(.*\)')
|
||||||
git clone https://github.com/famedly/dart-vodozemac.git -b ${version} .vodozemac
|
if [ ! -d ".vodozemac" ]; then
|
||||||
|
git clone https://github.com/famedly/dart-vodozemac.git -b v0.4.1 .vodozemac
|
||||||
|
fi
|
||||||
cd .vodozemac
|
cd .vodozemac
|
||||||
cargo install flutter_rust_bridge_codegen
|
cargo install flutter_rust_bridge_codegen
|
||||||
flutter_rust_bridge_codegen build-web --dart-root dart --rust-root $(readlink -f rust) --release
|
flutter_rust_bridge_codegen build-web --dart-root dart --rust-root $(readlink -f rust) --release
|
||||||
|
|
@ -17,4 +19,4 @@ curl -L 'https://github.com/famedly/dart_native_imaging/releases/download/v0.2.1
|
||||||
unzip native_imaging.zip
|
unzip native_imaging.zip
|
||||||
mv js/* .
|
mv js/* .
|
||||||
rmdir js
|
rmdir js
|
||||||
rm native_imaging.zip
|
rm native_imaging.zip
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue