diff --git a/tool/update.sh b/tool/update.sh index ecad5ebf..fb727a53 100755 --- a/tool/update.sh +++ b/tool/update.sh @@ -25,6 +25,9 @@ if [[ "$1" == "flutter" ]]; then find ./packages -name "pubspec.yaml" -exec sed -i "s/flutter: '>=.*'/flutter: '>=$flutter_version'/" {} \; find ./packages -name "pubspec.yaml" -exec sed -i "s/sdk: '>=.* <.*'/sdk: '>=$dart_version_major.$dart_version_minor.0 <$dart_version_next_major.0.0'/" {} \; fvm exec mono_repo pub get +elif [[ "$1" == "dependencies" ]]; then + fvm exec mono_repo pub upgrade --major-versions + fvm exec mono_repo pub upgrade elif [ -d "external/nextcloud-$1" ]; then update_app "$1" else