File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,9 @@ platform :ios do
30
30
# version_number: ENV['VERSION_NUMBER'],
31
31
# xcodeproj: "./Django Files.xcodeproj"
32
32
# )
33
- sh ( "sed -i '' 's/MARKETING_VERSION = [0-9]*\. [0-9]*\. [0-9]*/MARKETING_VERSION = #{ ENV [ 'VERSION_NUMBER' ] } ;/' \" ../Django Files.xcodeproj/project.pbxproj\" " )
33
+ # Extract base version number without any -123 style additions
34
+ base_version = ENV [ 'VERSION_NUMBER' ] . split ( '-' ) . first
35
+ sh ( "sed -i '' 's/MARKETING_VERSION = [0-9]*\. [0-9]*\. [0-9]*/MARKETING_VERSION = #{ base_version } ;/' \" ../Django Files.xcodeproj/project.pbxproj\" " )
34
36
increment_build_number (
35
37
build_number : ENV [ 'BUILD_NUMBER' ] ,
36
38
xcodeproj : "./Django Files.xcodeproj"
@@ -54,7 +56,9 @@ platform :ios do
54
56
# version_number: ENV['VERSION_NUMBER'],
55
57
# xcodeproj: "./Django Files.xcodeproj"
56
58
# )
57
- sh ( "sed -i '' 's/MARKETING_VERSION = [0-9]*\. [0-9]*\. [0-9]*/MARKETING_VERSION = #{ ENV [ 'VERSION_NUMBER' ] } ;/' \" ../Django Files.xcodeproj/project.pbxproj\" " )
59
+ # Extract base version number without any -123 style additions
60
+ base_version = ENV [ 'VERSION_NUMBER' ] . split ( '-' ) . first
61
+ sh ( "sed -i '' 's/MARKETING_VERSION = [0-9]*\. [0-9]*\. [0-9]*/MARKETING_VERSION = #{ base_version } ;/' \" ../Django Files.xcodeproj/project.pbxproj\" " )
58
62
increment_build_number (
59
63
build_number : ENV [ 'BUILD_NUMBER' ] ,
60
64
xcodeproj : "./Django Files.xcodeproj"
You can’t perform that action at this time.
0 commit comments