From 5d20803fb2f0c3560039fca407cfd3139385f8d7 Mon Sep 17 00:00:00 2001 From: Ted John Date: Thu, 2 Feb 2017 10:53:56 +0000 Subject: [PATCH] Remove version build from msbuild & NSIS (#5143) This also passes the version to NSIS removing another file containing the current version. --- distribution/windows/install.nsi | 29 +++++++++++------------------ openrct2.proj | 3 ++- 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/distribution/windows/install.nsi b/distribution/windows/install.nsi index 0c0cb8b21d..73d2b9cf76 100644 --- a/distribution/windows/install.nsi +++ b/distribution/windows/install.nsi @@ -1,31 +1,24 @@ -# Version numbers to update -!define /ifndef APPV_MAJOR 0 -!define /ifndef APPV_MINOR 0 -!define /ifndef APPV_MAINT 7 -!define /ifndef APPV_BUILD 0 - !define APPNAME "OpenRCT2" -!define APPVERSION "${APPV_MAJOR}.${APPV_MINOR}.${APPV_MAINT}${APPV_EXTRA}" -!define APPVERSIONINTERNAL "${APPV_MAJOR}.${APPV_MINOR}.${APPV_MAINT}.${APPV_BUILD}" - -!define /ifndef APPURLLINK "https://github.com/OpenRCT2/OpenRCT2" -!define APPNAMEANDVERSION "${APPNAME} ${APPVERSION}" +!define APPVERSION "${APPV_MAIN}${APPV_EXTRA}" +!define APPVERSIONINTERNAL "${APPV_MAIN}.0" +!define APPNAMEANDVERSION "${APPNAME} ${APPVERSION}" +!define APPURLLINK "https://github.com/OpenRCT2/OpenRCT2" !if "${PLATFORM}" == "Win32" - !define OPENRCT2_EXE "openrct2.exe" - !define APPBITS 32 - !define APPARCH "win32" + !define OPENRCT2_EXE "openrct2.exe" + !define APPBITS 32 + !define APPARCH "win32" InstallDir "$PROGRAMFILES32\OpenRCT2\" !else - !define OPENRCT2_EXE "openrct2.exe" - !define APPBITS 64 - !define APPARCH "win64" + !define OPENRCT2_EXE "openrct2.exe" + !define APPBITS 64 + !define APPARCH "win64" InstallDir "$PROGRAMFILES64\OpenRCT2\" !endif -!define SUPPORTED_OS "Windows Vista, 7, 8.1 and 10" +!define SUPPORTED_OS "Windows Vista, 7, 8.1 and 10" ; Define root variable relative to installer !define PATH_ROOT "..\..\" diff --git a/openrct2.proj b/openrct2.proj index 2776a37c26..bdcbf26263 100644 --- a/openrct2.proj +++ b/openrct2.proj @@ -19,7 +19,7 @@ true $(GIT_COMMIT_SHA1.Substring(0, 7)) - 0.0.7.0 + 0.0.7 -$(GIT_BRANCH)-$(GIT_COMMIT_SHA1_SHORT) 11 @@ -264,6 +264,7 @@