From 9b048fa79f79a5795a459643365d2ed46ddd8c1a Mon Sep 17 00:00:00 2001 From: driAn Date: Sat, 27 Oct 2007 12:46:40 +0000 Subject: [PATCH] buildEnv git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1399 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/vcpp/buildEnv/INSTALLER README.txt | 5 ++ source/vcpp/buildEnv/License.txt | 13 ++++ source/vcpp/buildEnv/ac.nsi | 85 +++++++++++++++++++++++ 3 files changed, 103 insertions(+) create mode 100644 source/vcpp/buildEnv/INSTALLER README.txt create mode 100644 source/vcpp/buildEnv/License.txt create mode 100644 source/vcpp/buildEnv/ac.nsi diff --git a/source/vcpp/buildEnv/INSTALLER README.txt b/source/vcpp/buildEnv/INSTALLER README.txt new file mode 100644 index 00000000..e6b6681c --- /dev/null +++ b/source/vcpp/buildEnv/INSTALLER README.txt @@ -0,0 +1,5 @@ +quick notes: + +* install command line cvs, include it in your system path variable +* edit the cvs command in exportCVS.bat and set your own username +* edit ac.nsi and fix the CURPATH variable \ No newline at end of file diff --git a/source/vcpp/buildEnv/License.txt b/source/vcpp/buildEnv/License.txt new file mode 100644 index 00000000..38638123 --- /dev/null +++ b/source/vcpp/buildEnv/License.txt @@ -0,0 +1,13 @@ +AssaultCube v0.93 (beta) +LICENSE + +AssaultCube is freeware, you may freely distribute the AssaultCube installer/archive unmodified on any media. You may re-compress using different archival formats (i.e. zip/tgz/rpm/deb/dmg), any changes beyond that require explicit permission. + +AssaultCube is distributed WITHOUT WARRANTY, you may use it for any purpose as long as you do not blame us for any damages incurred. + +As this game consists of different packages with different licenses, see these files in your AssaultCube installation for additional information: + + * docs/package_copyrights.txt + * source/README.txt + * source/README_CUBEENGINE.txt + diff --git a/source/vcpp/buildEnv/ac.nsi b/source/vcpp/buildEnv/ac.nsi new file mode 100644 index 00000000..135a258f --- /dev/null +++ b/source/vcpp/buildEnv/ac.nsi @@ -0,0 +1,85 @@ +!include "MUI.nsh" + + +; CONFIGURATION + +!define CURPATH "R:\projects\ActionCube\ac\source\vcpp\buildEnv" ; CHANGE ME +!define AC_VERSION "v0.94" + +Name "AssaultCube" +OutFile "AssaultCube_${AC_VERSION}.exe" +InstallDir "$PROGRAMFILES\AssaultCube" +InstallDirRegKey HKCU "Software\AssaultCube" "" + + +; Interface Configuration + +!define MUI_HEADERIMAGE +!define MUI_HEADERIMAGE_BITMAP "${CURPATH}\header.bmp" ; optional + +XPStyle on +Icon "${CURPATH}\icon.ico" +UninstallIcon "${CURPATH}\icon.ico" +!define MUI_ICON "${CURPATH}\icon.ico" +!define MUI_UNICON "${CURPATH}\icon.ico" + + +; Pages + +!insertmacro MUI_PAGE_LICENSE "${CURPATH}\License.txt" +!insertmacro MUI_PAGE_COMPONENTS +!insertmacro MUI_PAGE_DIRECTORY +!insertmacro MUI_PAGE_INSTFILES + +!insertmacro MUI_UNPAGE_CONFIRM +!insertmacro MUI_UNPAGE_INSTFILES + + +; Languages + +!insertmacro MUI_LANGUAGE "English" + + +; Installer Sections + +Section "AssaultCube (required)" SecDummy + + SectionIn RO + + SetOutPath "$INSTDIR" + + File /r ac\*.* + + WriteRegStr HKCU "Software\AssaultCube" "" $INSTDIR + + ; Create uninstaller + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AssaultCube" "DisplayName" "AssaultCube ${AC_VERSION}" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AssaultCube" "UninstallString" '"$INSTDIR\uninstall.exe"' + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AssaultCube" "NoModify" 1 + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AssaultCube" "NoRepair" 1 + + WriteUninstaller "$INSTDIR\Uninstall.exe" + +SectionEnd + + +Section "Start Menu Shortcuts" + + CreateDirectory "$SMPROGRAMS\AssaultCube" + CreateShortCut "$SMPROGRAMS\AssaultCube\AssaultCube.lnk" "$INSTDIR\AssaultCube.bat" "" "$INSTDIR\icon.ico" 0 SW_SHOWMINIMIZED + CreateShortCut "$SMPROGRAMS\AssaultCube\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 + CreateShortCut "$SMPROGRAMS\AssaultCube\README.lnk" "$INSTDIR\README.html" "" "" 0 + +SectionEnd + +Section "Uninstall" + + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\AssaultCube" + DeleteRegKey HKLM SOFTWARE\AssaultCube + + RMDir /r "$SMPROGRAMS\AssaultCube" + RMDir /r "$INSTDIR" + + DeleteRegKey /ifempty HKCU "Software\AssaultCube" + +SectionEnd \ No newline at end of file