nsis installer: open release-notes (web), compress using LZMA /SOLID
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1923 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -1,8 +1,46 @@
|
||||
!include "MUI.nsh"
|
||||
|
||||
|
||||
# Uses $0
|
||||
Function openLinkNewWindow
|
||||
Push $3
|
||||
Push $2
|
||||
Push $1
|
||||
Push $0
|
||||
ReadRegStr $0 HKCR "http\shell\open\command" ""
|
||||
# Get browser path
|
||||
DetailPrint $0
|
||||
StrCpy $2 '"'
|
||||
StrCpy $1 $0 1
|
||||
StrCmp $1 $2 +2 # if path is not enclosed in " look for space as final char
|
||||
StrCpy $2 ' '
|
||||
StrCpy $3 1
|
||||
loop:
|
||||
StrCpy $1 $0 1 $3
|
||||
DetailPrint $1
|
||||
StrCmp $1 $2 found
|
||||
StrCmp $1 "" found
|
||||
IntOp $3 $3 + 1
|
||||
Goto loop
|
||||
|
||||
found:
|
||||
StrCpy $1 $0 $3
|
||||
StrCmp $2 " " +2
|
||||
StrCpy $1 '$1"'
|
||||
|
||||
Pop $0
|
||||
Exec '$1 $0'
|
||||
Pop $1
|
||||
Pop $2
|
||||
Pop $3
|
||||
FunctionEnd
|
||||
|
||||
|
||||
; CONFIGURATION
|
||||
|
||||
AutoCloseWindow True
|
||||
SetCompressor /SOLID lzma
|
||||
|
||||
!define CURPATH "R:\projects\ActionCube\ac\source\vcpp\buildEnv" ; CHANGE ME
|
||||
!define AC_VERSION "v0.94"
|
||||
|
||||
@@ -60,6 +98,9 @@ Section "AssaultCube (required)" SecDummy
|
||||
|
||||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
||||
|
||||
StrCpy $0 "http://assault.cubers.net/releasenotes/v0.94/"
|
||||
Call openLinkNewWindow
|
||||
|
||||
SectionEnd
|
||||
|
||||
Section "Visual C++ redistributable runtime"
|
||||
|
||||
@@ -15,6 +15,10 @@ rem remove unix stuff
|
||||
del %acdir%\*.sh
|
||||
rmdir /S /Q %acdir%\bin_unix
|
||||
|
||||
rem remove source files (those are available in the source pkg)
|
||||
rmdir /S /Q %acdir%\source
|
||||
|
||||
|
||||
rem copy shadow files
|
||||
copy /Y %workingacdir%\packages\models\playermodels\shadows.dat %acdir%\packages\models\playermodels\shadows.dat
|
||||
copy /Y %workingacdir%\packages\models\misc\gib01\shadows.dat %acdir%\packages\models\misc\gib01\shadows.dat
|
||||
|
||||
Reference in New Issue
Block a user