mirror of
https://github.com/TangentFoxy/LovePackaging.git
synced 2024-11-09 09:34:22 +00:00
fix #14 autoNumberBuilds added
This commit is contained in:
parent
e9869267b7
commit
75f1261284
16
build
16
build
@ -11,6 +11,22 @@ set -o errexit
|
||||
#fi
|
||||
source ./config.sh
|
||||
|
||||
# append -buildN build numbers
|
||||
# (build.number file stored in $outputDir)
|
||||
if [ $autoNumberBuilds = true ]; then
|
||||
# get the number if file exists, else use 1
|
||||
if [ ! -r "$outputDir/build.number" ]; then
|
||||
source "$outputDir/build.number"
|
||||
((build++))
|
||||
else
|
||||
build=1
|
||||
fi
|
||||
# store the current build number
|
||||
echo "build=$build" > "$outputDir/build.number"
|
||||
# set version to use new build number
|
||||
version=$version-build$build
|
||||
fi
|
||||
|
||||
# check that zip and unzip are accessible
|
||||
# not sure if this is the best way to do this or not
|
||||
if ! which zip; then
|
||||
|
Loading…
Reference in New Issue
Block a user