Include debug version to Windows NSIS Installer

This commit is contained in:
Pali Rohár 2010-11-21 15:27:21 +01:00
parent 1e5426d1d9
commit 5cd1ca7cb6
2 changed files with 15 additions and 0 deletions

View file

@ -6,6 +6,12 @@ make distclean || exit 1
make || exit 1
make strip || exit 1
#upx -9 stratagus.exe || exit 1
mv stratagus.exe stratagus-rel.exe || exit 1
make distclean || exit 1
./autogen.sh || exit 1
./configure --enable-win32 --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32 --enable-static --enable-debug --without-bzip2 --disable-stdio-redirect || exit 1
make OUTFILE=stratagus-dbg.exe || exit 1
mv stratagus-rel.exe stratagus.exe || exit 1
makensis -DAMD64 stratagus.nsi || exit 1
make distclean || exit 1
@ -14,4 +20,10 @@ make distclean || exit 1
make || exit 1
make strip || exit 1
upx -9 stratagus.exe || exit 1
mv stratagus.exe stratagus-rel.exe || exit 1
make distclean || exit 1
./autogen.sh || exit 1
./configure --enable-win32 --host=i686-w64-mingw32 --prefix=/usr/i686-w64-mingw32 --enable-static --enable-debug --without-bzip2 --disable-stdio-redirect || exit 1
make OUTFILE=stratagus-dbg.exe || exit 1
mv stratagus-rel.exe stratagus.exe || exit 1
makensis stratagus.nsi || exit 1

View file

@ -33,6 +33,7 @@
!define ICON "contrib/stratagus.ico"
!define STRATAGUS "stratagus.exe"
!define STRATAGUSDBG "stratagus-dbg.exe"
!define UNINSTALL "uninstall.exe"
!define INSTALLER "${NAME}-${VERSION}.exe"
!define INSTALLDIR "$PROGRAMFILES\${NAME}\"
@ -177,6 +178,7 @@ Section "${NAME}"
SetOutPath $INSTDIR
File "${STRATAGUS}"
File "${STRATAGUSDBG}"
WriteRegStr HKLM "${REGKEY}" "DisplayName" "${NAME}"
WriteRegStr HKLM "${REGKEY}" "UninstallString" "$\"$INSTDIR\${UNINSTALL}$\""
WriteRegStr HKLM "${REGKEY}" "QuietUninstallString" "$\"$INSTDIR\${UNINSTALL}$\" /S"
@ -202,6 +204,7 @@ Section "un.${NAME}" Executable
SectionIn RO
Delete "$INSTDIR\${STRATAGUS}"
Delete "$INSTDIR\${STRATAGUSDBG}"
Delete "$INSTDIR\${UNINSTALL}"
RMDir "$INSTDIR"
DeleteRegKey /ifempty HKLM "${REGKEY}"