From e7370d5d023597f52d962ada9409ce3e04db3b4a Mon Sep 17 00:00:00 2001 From: DOHYEONG LEE Date: Sat, 22 Jun 2024 04:26:43 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EB=B9=8C=EB=93=9C=EB=B2=88=ED=98=B8=20?= =?UTF-8?q?=EC=A6=9D=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1ee97f40..47edbf98 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,19 +46,14 @@ - name: Update bundle version run: | - # Set the version number + # Set the version number to 1.0.0 and build number to 1 VERSION_NUMBER="1.0.0" - # Get the current build number - BUILD_NUMBER=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "ios/PoppinProject/Info.plist" || echo "3") - # If BUILD_NUMBER is not a number, start from 3 - if ! [[ "$BUILD_NUMBER" =~ ^[0-9]+$ ]]; then - BUILD_NUMBER=3 + BUILD_NUMBER="4" + # Update the Info.plist with the new version number and build number + # Ensure build number is at least 3, then increment + if [ "$BUILD_NUMBER" -lt 4 ]; then + BUILD_NUMBER=4 fi - # Ensure build number is at least 3 - if [ "$BUILD_NUMBER" -lt 3 ]; then - BUILD_NUMBER=3 - fi - # Increment the build number NEW_BUILD_NUMBER=$((BUILD_NUMBER + 1)) # Update the Info.plist with the new build number and fixed version number /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $VERSION_NUMBER" "ios/PoppinProject/Info.plist"