Skip to content

Commit

Permalink
Fix: 빌드번호 증가
Browse files Browse the repository at this point in the history
  • Loading branch information
puretension committed Jun 21, 2024
1 parent cd8f912 commit e7370d5
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e7370d5

Please sign in to comment.