- calculate full version tag in build script and set AssemblyTitle
- display AssemblyTitle in Vocaluxe gui - code names are stored in .build/versionNames.json - pre and post build scripts for windows (one place for all commands) - adjusted and moved the linux build scripts
This commit is contained in:
1 parent
0eb28b1bc9
commit
152be5d8ad
9 files changed
+112
-64
No files matched your search
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
PROJECT=$1
|
||||
cd $PROJECT
|
||||
arch=$2
|
||||
version=$(git describe --long)
|
||||
shortVersion=${version%%-*}
|
||||
shortVersionClean=$(echo $shortVersion | sed -e 's/alpha/0/' -e 's/beta/1/' -e 's/rc/2/' -e 's/[[:alpha:]]//g')
|
||||
|
||||
case ${shortVersion##*.} in
|
||||
alpha*)
|
||||
releaseType='Alpha'
|
||||
;;
|
||||
beta*)
|
||||
releaseType='Beta'
|
||||
;;
|
||||
rc*)
|
||||
releaseType='RC'
|
||||
;;
|
||||
*)
|
||||
releaseType='Release'
|
||||
;;
|
||||
esac
|
||||
|
||||
versionName=$(grep -oP "\"${shortVersionClean%.*}.\" *: *\"\K([^\"]+)(?=\")" ../.build/versionNames.json)
|
||||
fullVersionName="Vocaluxe $([ "$versionName" == "" ] && echo "" || echo "'$versionName' ")$shortVersion ($arch) $([ "$releaseType" == "Release" ] && echo "" || echo "$releaseType ")($version)"
|
||||
|
||||
sed -i -e s/GITVERSION/$(git describe --long)/ $PROJECT/Properties/AssemblyInfo.cs
|
||||
sed -i -e s/SHORTVERSION/"$shortVersionClean"/ $PROJECT/Properties/AssemblyInfo.cs
|
||||
sed -i -e s/FULLVERSION/"$fullVersionName"/ $PROJECT/Properties/AssemblyInfo.cs
|
||||
Reference in new issue
Block a user