From 05ed8157dc996cb302e2a62758ea4fc8b68fd81d Mon Sep 17 00:00:00 2001 From: Kabir Kalsi <26483873+ASparkOfFire@users.noreply.github.com> Date: Thu, 4 Dec 2025 16:29:29 +0530 Subject: [PATCH] fix: prepare-web.sh: Update prepare-web.sh to clone repository conditionally Clone the dart-vodozemac repository conditionally based on version. --- scripts/prepare-web.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/prepare-web.sh b/scripts/prepare-web.sh index 6ffb59f6e..0ae20ea5b 100755 --- a/scripts/prepare-web.sh +++ b/scripts/prepare-web.sh @@ -2,7 +2,9 @@ version=$(yq ".dependencies.flutter_vodozemac" < pubspec.yaml) 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 cargo install flutter_rust_bridge_codegen 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 mv js/* . rmdir js -rm native_imaging.zip \ No newline at end of file +rm native_imaging.zip