Changed: Centralize version numbers (#961)

* Centralize version numbers

* Fixed: Run UpdateVersionNumber on Package (For Separate Jobs)
pull/952/head
ta264 5 years ago committed by Qstick
parent 075683bbd8
commit a627c2c9ab

@ -47,6 +47,7 @@ UpdateVersionNumber()
echo "Updating Version Info"
sed -i "s/<AssemblyVersion>[0-9.*]\+<\/AssemblyVersion>/<AssemblyVersion>$LIDARRVERSION<\/AssemblyVersion>/g" ./src/Directory.Build.props
sed -i "s/<AssemblyConfiguration>[\$()A-Za-z-]\+<\/AssemblyConfiguration>/<AssemblyConfiguration>${BUILD_SOURCEBRANCHNAME}<\/AssemblyConfiguration>/g" ./src/Directory.Build.props
sed -i "s/<string>10.0.0.0<\/string>/<string>$LIDARRVERSION<\/string>/g" ./macOS/Lidarr.app/Contents/Info.plist
fi
}
@ -347,6 +348,7 @@ fi
# Only package if we haven't set only-backend or only-frontend
if [ -z "$ONLY_BACKEND" ] && [ -z "$ONLY_FRONTEND" ];
then
UpdateVersionNumber
PackageMono
PackageMacOS
PackageMacOSApp

@ -23,11 +23,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.6.2</string>
<string>10.0.0.0</string>
<key>CFBundleSignature</key>
<string>xmmd</string>
<key>CFBundleVersion</key>
<string>0.6.2</string>
<string>10.0.0.0</string>
<key>NSAppleScriptEnabled</key>
<string>YES</string>
</dict>

@ -6,7 +6,7 @@
#define AppURL "https://lidarr.audio/"
#define ForumsURL "https://forums.lidarr.audio/"
#define AppExeName "Lidarr.exe"
#define BaseVersion "0.6.2"
#define BaseVersion GetEnv('MAJORVERSION')
#define BuildNumber GetEnv('MINORVERSION')
#define BuildVersion GetEnv('LIDARRVERSION')
#define BranchName GetEnv('BUILD_SOURCEBRANCHNAME')

Loading…
Cancel
Save