Skip to content

Commit 3a5f398

Browse files
committed
Fixed installers: only include the vcredist for the right architecture,
search in bld*64 for 64 bit installer, fixed VERSION_BUILD to be empty, changed name of installers to include XXbit.
1 parent a959f3c commit 3a5f398

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

tools/windows_installer/supertuxkart-64bit.nsi

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
!define DESCRIPTION "3D open-source arcade racer with a variety characters, tracks, and modes to play"
4444

4545
Name "${APPNAMEANDVERSION}"
46-
OutFile "${APPNAMEANDVERSION} installer.exe"
46+
OutFile "${APPNAMEANDVERSION} installer-64bit.exe"
4747

4848
# These will be displayed by the "Click here for support information" link in "Add/Remove Programs"
4949
# It is possible to use "mailto:" links in here to open the email client
@@ -174,12 +174,12 @@ Section "Install" SecMain
174174

175175
; Try to find the binary directory in a list of 'typical' names:
176176
; The first found directory is used
177-
${!setIfUndefinedAndExists} EXEC_PATH ..\..\bld\bin\RelWithDebInfo\*.*
178-
${!setIfUndefinedAndExists} EXEC_PATH ..\..\bld\bin\Release\*.*
179-
${!setIfUndefinedAndExists} EXEC_PATH ..\..\build\bin\RelWithDebInfo\*.*
180-
${!setIfUndefinedAndExists} EXEC_PATH ..\..\build\bin\Release\*.*
181-
${!setIfUndefinedAndExists} EXEC_PATH ..\..\cmake_build\bin\RelWithDebInfo\*.*
182-
${!setIfUndefinedAndExists} EXEC_PATH ..\..\cmake_build\bin\Release\*.*
177+
${!setIfUndefinedAndExists} EXEC_PATH ..\..\bld-64\bin\RelWithDebInfo\*.*
178+
${!setIfUndefinedAndExists} EXEC_PATH ..\..\bld-64\bin\Release\*.*
179+
${!setIfUndefinedAndExists} EXEC_PATH ..\..\build-64\bin\RelWithDebInfo\*.*
180+
${!setIfUndefinedAndExists} EXEC_PATH ..\..\build-64\bin\Release\*.*
181+
${!setIfUndefinedAndExists} EXEC_PATH ..\..\cmake_build-64\bin\RelWithDebInfo\*.*
182+
${!setIfUndefinedAndExists} EXEC_PATH ..\..\cmake_build-64\bin\Release\*.*
183183

184184
File /x *.ilk ${EXEC_PATH}
185185

@@ -206,7 +206,7 @@ Section "Install" SecMain
206206
File *.ico
207207
; prereqs
208208
SetOutPath "$INSTDIR\prerequisites"
209-
File /r prerequisites\*.*
209+
File /r prerequisites\vcredist_x64.exe
210210

211211
; data + assets
212212
SetOutPath "$INSTDIR\data\"
@@ -281,7 +281,6 @@ Section "Uninstall" redist
281281
DELETE /REBOOTOK "$INSTDIR\icon.ico"
282282
DELETE /REBOOTOK "$INSTDIR\libcurl-4.dll"
283283
DELETE /REBOOTOK "$INSTDIR\libeay32.dll"
284-
DELETE /REBOOTOK "$INSTDIR\libidn-11.dll"
285284
DELETE /REBOOTOK "$INSTDIR\License.txt"
286285
DELETE /REBOOTOK "$INSTDIR\libfreetype.dll"
287286
DELETE /REBOOTOK "$INSTDIR\libfribidi-0.dll"

tools/windows_installer/supertuxkart.nsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@
3535
!define VERSION_MINOR 9
3636
!define VERSION_REVISION 3
3737
; Empty means stable, could be -git, -rc1
38-
!define VERSION_BUILD "-rc1"
38+
!define VERSION_BUILD ""
3939

4040
;Name and file
4141
!define APPNAME "SuperTuxKart"
4242
!define APPNAMEANDVERSION "${APPNAME} ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION}${VERSION_BUILD}"
4343
!define DESCRIPTION "3D open-source arcade racer with a variety characters, tracks, and modes to play"
4444

4545
Name "${APPNAMEANDVERSION}"
46-
OutFile "${APPNAMEANDVERSION} installer.exe"
46+
OutFile "${APPNAMEANDVERSION} installer-32bit.exe"
4747

4848
# These will be displayed by the "Click here for support information" link in "Add/Remove Programs"
4949
# It is possible to use "mailto:" links in here to open the email client
@@ -206,7 +206,7 @@ Section "Install" SecMain
206206
File *.ico
207207
; prereqs
208208
SetOutPath "$INSTDIR\prerequisites"
209-
File /r prerequisites\*.*
209+
File /r prerequisites\vcredist_x86.exe
210210

211211
; data + assets
212212
SetOutPath "$INSTDIR\data\"

0 commit comments

Comments
 (0)