Removed old Windows Installer
Added new Windows NSI Installer Added script to cross compile Windows 32/64 bit version
This commit is contained in:
parent
f838bdd804
commit
b76cb9ab43
6 changed files with 68 additions and 54 deletions
15
build-win32-cross.sh
Executable file
15
build-win32-cross.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
make distclean || exit 1
|
||||
./autogen.sh || exit 1
|
||||
./configure --enable-win32 --host=i586-mingw32msvc --prefix=/usr/i586-mingw32msvc --enable-static --without-bzip2 || exit 1
|
||||
make || exit 1
|
||||
makensis stratagus.nsi || exit 1
|
||||
mv stratagus-install.exe stratagus-install-i586.exe || exit 1
|
||||
|
||||
make distclean || exit 1
|
||||
./autogen.sh || exit 1
|
||||
./configure --enable-win32 --host=amd64-mingw32msvc --prefix=/usr/amd64-mingw32msvc --enable-static --without-bzip2 || exit 1
|
||||
make || exit 1
|
||||
makensis stratagus.nsi || exit 1
|
||||
mv stratagus-install.exe stratagus-install-amd64.exe || exit 1
|
Binary file not shown.
Before ![]() (image error) Size: 358 B |
Binary file not shown.
Before ![]() (image error) Size: 358 B |
Binary file not shown.
Before (image error) Size: 1.9 KiB |
|
@ -1,54 +0,0 @@
|
|||
; The name of the installer
|
||||
Name "Stratagus"
|
||||
|
||||
OutFile "stratagus-030311-win32.exe"
|
||||
Icon "stratagus.ico"
|
||||
|
||||
InstallDir $PROGRAMFILES\Stratagus
|
||||
|
||||
DirText "Stratagus will be installed to the specified location"
|
||||
|
||||
ComponentText "This will install Stratagus. Select what you want installed."
|
||||
EnabledBitmap bitmap1.bmp
|
||||
DisabledBitmap bitmap2.bmp
|
||||
InstType "WC2"
|
||||
InstType "Base Only"
|
||||
|
||||
; Base Files
|
||||
Section "Base (required)"
|
||||
SectionIn RO
|
||||
SetOutPath $INSTDIR
|
||||
File /r "C:\projects\stratagus-030311\*.*"
|
||||
WriteUninstaller $INSTDIR\uninst.exe
|
||||
SectionEnd
|
||||
|
||||
Section "Use WC2 Data"
|
||||
SectionIn 1
|
||||
StrCpy $1 "1"
|
||||
SetOutPath $INSTDIR
|
||||
; Exec "command /c set cdrom=e:"
|
||||
; Exec $INSTDIR\build.bat
|
||||
MessageBox MB_OK "To use WC2 data:$\n\
|
||||
First edit build.bat, insert the WC2 CDRom, and then run build.bat."
|
||||
SectionEnd
|
||||
|
||||
Section "Start Menu Shortcuts"
|
||||
SectionIn 1
|
||||
SectionIn 2
|
||||
CreateDirectory "$SMPROGRAMS\Stratagus"
|
||||
StrCmp $1 "1" 0 NoWC2Shortcut
|
||||
CreateShortCut "$SMPROGRAMS\Stratagus\Stratagus (WC2).lnk" "$INSTDIR\stratagus.exe" ""
|
||||
CreateShortCut "$SMPROGRAMS\Stratagus\Edit build.bat.lnk" "notepad.exe" "$INSTDIR\build.bat" ""
|
||||
CreateShortCut "$SMPROGRAMS\Stratagus\Run build.bat.lnk" "$INSTDIR\build.bat" ""
|
||||
NoWC2Shortcut:
|
||||
CreateShortCut "$SMPROGRAMS\Stratagus\Uninstall Stratagus.lnk" "$INSTDIR\uninst.exe" ""
|
||||
SectionEnd
|
||||
|
||||
Uninstalltext "This will uninstall Stratagus."
|
||||
|
||||
Section "Uninstall"
|
||||
RMDir /r $SMPROGRAMS\Stratagus
|
||||
RMDir /r $INSTDIR
|
||||
SectionEnd
|
||||
|
||||
|
53
stratagus.nsi
Normal file
53
stratagus.nsi
Normal file
|
@ -0,0 +1,53 @@
|
|||
;--------------------------------
|
||||
|
||||
Name "Stratagus"
|
||||
OutFile "stratagus-install.exe"
|
||||
Icon "contrib/stratagus.ico"
|
||||
InstallDir $PROGRAMFILES\Stratagus
|
||||
BrandingText " "
|
||||
|
||||
;--------------------------------
|
||||
|
||||
Function .onInit
|
||||
|
||||
ReadRegStr $R0 HKLM "Software\Stratagus" "InstallDir"
|
||||
StrCmp $R0 "" done
|
||||
|
||||
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "Stratagus is already installed. $\n$\nClick `OK` to remove the previous version or `Cancel` to cancel this upgrade." IDOK uninstall
|
||||
Abort
|
||||
|
||||
uninstall:
|
||||
|
||||
ClearErrors
|
||||
ExecWait "$R0\uninstall.exe _?=$R0"
|
||||
RMDir /r $INSTDIR
|
||||
|
||||
done:
|
||||
|
||||
FunctionEnd
|
||||
|
||||
;--------------------------------
|
||||
|
||||
Page directory
|
||||
Page instfiles
|
||||
|
||||
;--------------------------------
|
||||
|
||||
Section ""
|
||||
|
||||
SetOutPath $INSTDIR
|
||||
File "stratagus.exe"
|
||||
WriteRegStr HKLM "Software\Stratagus" "InstallDir" $INSTDIR
|
||||
WriteUninstaller $INSTDIR\uninstall.exe
|
||||
|
||||
SectionEnd
|
||||
|
||||
;--------------------------------
|
||||
|
||||
Section "Uninstall"
|
||||
|
||||
RMDir /r $INSTDIR
|
||||
DeleteRegKey /ifempty HKLM "Software\Stratagus"
|
||||
|
||||
SectionEnd
|
||||
|
Loading…
Add table
Reference in a new issue