From fb648845e465bf0c376f6d0d4197c8243abdaecd Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 12 Nov 2023 00:05:21 +0800 Subject: improve specvars --- xmake/scripts/xpack/nsis/makensis.nsi | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'xmake/scripts') diff --git a/xmake/scripts/xpack/nsis/makensis.nsi b/xmake/scripts/xpack/nsis/makensis.nsi index a8c7b207b..120f94f46 100644 --- a/xmake/scripts/xpack/nsis/makensis.nsi +++ b/xmake/scripts/xpack/nsis/makensis.nsi @@ -11,27 +11,7 @@ !include "UAC.nsh" ; the version information -!ifndef MAJOR - !define MAJOR 1 -!endif -!ifndef MINOR - !define MINOR 0 -!endif -!ifndef PATCH - !define PATCH 0 -!endif -!ifndef BUILD - !define BUILD 0 -!endif - -!define VERSION ${MAJOR}.${MINOR}.${PATCH} -!define VERSION_FULL ${VERSION}+${BUILD} - -!ifdef x64 - !define ARCH x64 -!else - !define ARCH x86 -!endif +!define VERSION_FULL ${VERSION}+${VERSION_BUILD} ;-------------------------------- @@ -101,7 +81,7 @@ ManifestDPIAware true ; Install Pages !insertmacro MUI_PAGE_WELCOME -!insertmacro MUI_PAGE_LICENSE "..\LICENSE.md" +;!insertmacro MUI_PAGE_LICENSE "..\LICENSE.md" !insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_INSTFILES -- cgit v1.3.1