Browse Source

tool: Enable updating dependencies automatically

pull/89/head
jld3103 2 years ago
parent
commit
6437d5bfdd
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 3
      tool/update.sh

3
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/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'/" {} \; 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 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 elif [ -d "external/nextcloud-$1" ]; then
update_app "$1" update_app "$1"
else else

Loading…
Cancel
Save