From 73b4b032b17df8efde5b26e1c33d98313587ac0f Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Thu, 16 Feb 2023 10:13:42 -0500 Subject: [PATCH] fix(release): pump script (#1768) --- misc/release/pump-version.sh | 19 ++++++++----------- mobile/pubspec.yaml | 2 +- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/misc/release/pump-version.sh b/misc/release/pump-version.sh index 0908b12943..7a1ecda3f0 100755 --- a/misc/release/pump-version.sh +++ b/misc/release/pump-version.sh @@ -60,22 +60,19 @@ else fi if [ "$CURRENT_SERVER" != "$NEXT_SERVER" ]; then - echo "Pumping Server: $CURRENT_SERVER => $NEXT_SERVER" - - sed -i "s/^ \"version\": \"$CURRENT_SERVER\",$/ \"version\": \"$NEXT_SERVER\",/" server/package.json - sed -i "s/^ \"version\": \"$CURRENT_SERVER\",$/ \"version\": \"$NEXT_SERVER\",/" server/package-lock.json - sed -i "s/\"version\": \"$CURRENT_SERVER\",$/\"version\": \"$NEXT_SERVER\",/" server/immich-openapi-specs.json - sed -i "s/\"android\.injected\.version\.name\" => \"$CURRENT_SERVER\",/\"android\.injected\.version\.name\" => \"$NEXT_SERVER\",/" mobile/android/fastlane/Fastfile - sed -i "s/version_number: \"$CURRENT_SERVER\"$/version_number: \"$NEXT_SERVER\"/" mobile/ios/fastlane/Fastfile fi if [ "$CURRENT_MOBILE" != "$NEXT_MOBILE" ]; then - echo "Pumping Mobile: $CURRENT_MOBILE => $NEXT_MOBILE" - - sed -i "s/\"android\.injected\.version\.code\" => $CURRENT_MOBILE,/\"android\.injected\.version\.code\" => $NEXT_MOBILE,/" mobile/android/fastlane/Fastfile - sed -i "s/^version: $CURRENT_SERVER+$CURRENT_MOBILE$/version: $NEXT_SERVER+$NEXT_MOBILE/" mobile/pubspec.yaml fi +sed -i "s/^ \"version\": \"$CURRENT_SERVER\",$/ \"version\": \"$NEXT_SERVER\",/" server/package.json +sed -i "s/^ \"version\": \"$CURRENT_SERVER\",$/ \"version\": \"$NEXT_SERVER\",/" server/package-lock.json +sed -i "s/\"version\": \"$CURRENT_SERVER\",$/\"version\": \"$NEXT_SERVER\",/" server/immich-openapi-specs.json +sed -i "s/\"android\.injected\.version\.name\" => \"$CURRENT_SERVER\",/\"android\.injected\.version\.name\" => \"$NEXT_SERVER\",/" mobile/android/fastlane/Fastfile +sed -i "s/version_number: \"$CURRENT_SERVER\"$/version_number: \"$NEXT_SERVER\"/" mobile/ios/fastlane/Fastfile +sed -i "s/\"android\.injected\.version\.code\" => $CURRENT_MOBILE,/\"android\.injected\.version\.code\" => $NEXT_MOBILE,/" mobile/android/fastlane/Fastfile +sed -i "s/^version: $CURRENT_SERVER+$CURRENT_MOBILE$/version: $NEXT_SERVER+$NEXT_MOBILE/" mobile/pubspec.yaml + echo "IMMICH_VERSION=v$NEXT_SERVER" >>$GITHUB_ENV diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yaml index 3baa2f038f..5380b194b3 100644 --- a/mobile/pubspec.yaml +++ b/mobile/pubspec.yaml @@ -2,7 +2,7 @@ name: immich_mobile description: Immich - selfhosted backup media file on mobile phone publish_to: "none" -version: 1.47.0+70 +version: 1.47.3+70 isar_version: &isar_version 3.0.5 environment: