fix NSIS script

This commit is contained in:
Thomas Bernard
2018-06-21 13:13:08 +02:00
parent 9cfc95f67d
commit 30fa39d908
2 changed files with 13 additions and 8 deletions

View File

@@ -2,6 +2,7 @@
;Based on the Example Script written by Joost Verburg
!define VERSION 2.5.1946
!define API sdl
!define INSTALLSIZE 10072
@@ -15,7 +16,7 @@
;Name and file
Name "Grafx2"
OutFile "grafx2-${VERSION}.win32.exe"
OutFile "grafx2-${API}-${VERSION}.win32.exe"
;Default installation folder
InstallDir "$PROGRAMFILES\Grafx2"
@@ -86,12 +87,14 @@ Section "Grafx2" SecProgram
File ..\src\gfx2.ico
File "..\src-${VERSION}.tgz"
SetOutPath "$INSTDIR\bin"
File ..\bin\grafx2.exe
File ..\bin\SDL_image.dll
File ..\bin\SDL.dll
File ..\bin\grafx2-${API}.exe
StrCmp ${API} "sdl" 0 nosdl
File ..\bin\SDL_image.dll
File ..\bin\SDL.dll
File ..\bin\SDL_ttf.dll
nosdl:
File ..\bin\libfreetype-6.dll
File ..\bin\libjpeg-9.dll
File ..\bin\SDL_ttf.dll
File ..\bin\zlib1.dll
File ..\bin\libpng16-16.dll
SetOutPath "$INSTDIR\share\grafx2"