Update and split bump scripts
This commit is contained in:
parent
6cc86e8668
commit
a0b37676a0
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
if [ -z $1 ]; then
|
||||
echo "Version number required"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -z $2 ]; then
|
||||
BUILD="build:$2"
|
||||
fi
|
||||
VERSION="version:$1"
|
||||
bundle exec fastlane bump $VERSION $BUILD
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
if [ ! -z $1 ]; then
|
||||
VERSION="version:$1"
|
||||
BUILD="build:$1"
|
||||
fi
|
||||
bundle exec fastlane bump "$VERSION"
|
||||
bundle exec fastlane bump $BUILD
|
||||
|
|
|
@ -21,8 +21,9 @@ logname = "CHANGELOG.txt"
|
|||
|
||||
desc "Bump version"
|
||||
lane :bump do |options|
|
||||
increment_build_number
|
||||
version = options[:version]
|
||||
build = options[:build]
|
||||
increment_build_number(build_number: build)
|
||||
unless version.nil? || version.empty?
|
||||
increment_version_number_in_xcodeproj(version_number: version)
|
||||
end
|
||||
|
@ -37,10 +38,10 @@ lane :bump do |options|
|
|||
message: "Bump version",
|
||||
include: [logname]
|
||||
)
|
||||
#add_git_tag(
|
||||
# includes_lane: false,
|
||||
# sign: true
|
||||
#)
|
||||
add_git_tag(
|
||||
includes_lane: false,
|
||||
sign: true
|
||||
)
|
||||
end
|
||||
|
||||
desc "Push a new beta build to TestFlight"
|
||||
|
|
Loading…
Reference in New Issue