mirror of
https://github.com/etlegacy/etlegacy-tools.git
synced 2024-11-21 19:41:37 +00:00
typo fixes and tiny adjustments
This commit is contained in:
parent
24bfc165cb
commit
1293230598
3 changed files with 27 additions and 27 deletions
|
@ -1,4 +1,4 @@
|
||||||
tools
|
Tools
|
||||||
=====
|
=====
|
||||||
|
|
||||||
Toold for etlegacy repo
|
Tools for etlegacy repo
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#
|
#
|
||||||
# ET:Legacy Linux full installer - Download and install the whole ET:Legacy universe. Hf!
|
# ET: Legacy Linux full installer - Download and install the whole ET: Legacy universe. Hf!
|
||||||
#
|
#
|
||||||
# - Put this script into your $HOME path or any desired folder.
|
# - Put this script into your $HOME path or any desired folder.
|
||||||
# - Change permission to execute and run the script.
|
# - Change permission to execute and run the script.
|
||||||
|
@ -82,7 +82,7 @@ echo -e "${colorB}**************************************************************
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# license
|
# license
|
||||||
note i "ET:Legacy is published under the GNU GPLv3 license"
|
note i "ET: Legacy is published under the GNU GPLv3 license"
|
||||||
note i "See http://www.gnu.org/licenses/gpl-3.0"
|
note i "See http://www.gnu.org/licenses/gpl-3.0"
|
||||||
note i ""
|
note i ""
|
||||||
note i "W:ET assets are still covered by the original EULA"
|
note i "W:ET assets are still covered by the original EULA"
|
||||||
|
@ -102,11 +102,11 @@ if [ ! -f et-linux-2.60.x86.run ]; then
|
||||||
downloader http://ftp.gwdg.de/pub/misc/ftp.idsoftware.com/idstuff/et/linux/et-linux-2.60.x86.run
|
downloader http://ftp.gwdg.de/pub/misc/ftp.idsoftware.com/idstuff/et/linux/et-linux-2.60.x86.run
|
||||||
fi
|
fi
|
||||||
if [ ! -f etlegacy-linux-${version}.zip ]; then
|
if [ ! -f etlegacy-linux-${version}.zip ]; then
|
||||||
note i "Fetching ET:Legacy files..."
|
note i "Fetching ET: Legacy files..."
|
||||||
downloader http://mirror.etlegacy.com/release/etlegacy-linux-${version}.zip
|
downloader http://mirror.etlegacy.com/release/etlegacy-linux-${version}.zip
|
||||||
fi
|
fi
|
||||||
if [ ! -f omnibot-linux-latest.tar.gz ]; then
|
if [ ! -f omnibot-linux-latest.tar.gz ]; then
|
||||||
note i "Fetching Omni-Bot files..."
|
note i "Fetching Omni-bot files..."
|
||||||
downloader http://mirror.etlegacy.com/omnibot/omnibot-linux-latest.tar.gz
|
downloader http://mirror.etlegacy.com/omnibot/omnibot-linux-latest.tar.gz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ fi
|
||||||
# end
|
# end
|
||||||
echo
|
echo
|
||||||
echo -e "${colorB}***********************************************************************${reset}"
|
echo -e "${colorB}***********************************************************************${reset}"
|
||||||
echo -e " ${colorR}Thank you for installing ET:Legacy${reset}"
|
echo -e " ${colorR}Thank you for installing ET: Legacy${reset}"
|
||||||
echo -e "${colorB}***********************************************************************${reset}"
|
echo -e "${colorB}***********************************************************************${reset}"
|
||||||
echo -e " Visit us on ${colorY}www.etlegacy.com${reset} and ${colorY}IRC #etlegacy@freenode.net${reset}"
|
echo -e " Visit us on ${colorY}www.etlegacy.com${reset} and ${colorY}IRC #etlegacy@freenode.net${reset}"
|
||||||
echo -e "${colorB}***********************************************************************${reset}"
|
echo -e "${colorB}***********************************************************************${reset}"
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
; ------------------------
|
; ------------------------
|
||||||
; ET:Legacy NSIS installer
|
; ET: Legacy NSIS installer
|
||||||
; ------------------------
|
; ------------------------
|
||||||
; Before running NSIS, ensure to add in the current folder:
|
; Before running NSIS, ensure to add in the current folder:
|
||||||
; - the NSIS zip plug-in (http://nsis.sourceforge.net/ZipDLL_plug-in)
|
; - the NSIS zip plug-in (http://nsis.sourceforge.net/ZipDLL_plug-in)
|
||||||
; - the NSIS md5 plug-in (ANSI) (http://nsis.sourceforge.net/MD5_plugin)
|
; - the NSIS md5 plug-in (ANSI) (http://nsis.sourceforge.net/MD5_plugin)
|
||||||
; - the NSIS simple firewall plug-in (http://nsis.sourceforge.net/NSIS_Simple_Firewall_Plugin)
|
; - the NSIS simple firewall plug-in (http://nsis.sourceforge.net/NSIS_Simple_Firewall_Plugin)
|
||||||
; - the ET:Legacy binary files in a "etlegacy-windows-${VERSION}" subfolder without Omni-bot files.
|
; - the ET: Legacy binary files in a "etlegacy-windows-${VERSION}" subfolder without Omni-bot files.
|
||||||
; Change the version number below. You don't need to change anything else.
|
; Change the version number below. You don't need to change anything else.
|
||||||
|
|
||||||
!define VERSION "2.71rc4"
|
!define VERSION "2.71rc4"
|
||||||
|
@ -19,9 +19,9 @@ CRCCheck on
|
||||||
RequestExecutionLevel admin
|
RequestExecutionLevel admin
|
||||||
|
|
||||||
; Variables
|
; Variables
|
||||||
Name "ET:Legacy ${VERSION}"
|
Name "ET: Legacy ${VERSION}"
|
||||||
OutFile "etlegacy-windows-${VERSION}-full-installer.exe"
|
OutFile "etlegacy-windows-${VERSION}-full-installer.exe"
|
||||||
BrandingText "ET:Legacy ${VERSION} | http://www.etlegacy.com"
|
BrandingText "ET: Legacy ${VERSION} | http://www.etlegacy.com"
|
||||||
!define PRODUCT_DIR_REGKEY "SOFTWARE\Enemy Territory - Legacy"
|
!define PRODUCT_DIR_REGKEY "SOFTWARE\Enemy Territory - Legacy"
|
||||||
!define PRODUCT_UNINST_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Enemy Territory - Legacy"
|
!define PRODUCT_UNINST_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Enemy Territory - Legacy"
|
||||||
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "InstallPath"
|
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "InstallPath"
|
||||||
|
@ -42,7 +42,7 @@ InstallDir "$PROGRAMFILES\Enemy Territory - Legacy\"
|
||||||
!define MUI_UNCOMPONENTSPAGE_SMALLDESC
|
!define MUI_UNCOMPONENTSPAGE_SMALLDESC
|
||||||
|
|
||||||
; Pages
|
; Pages
|
||||||
!define MUI_FINISHPAGE_TEXT "ET:Legacy ${VERSION} has been installed on your computer.$\n$\n\
|
!define MUI_FINISHPAGE_TEXT "ET: Legacy ${VERSION} has been installed on your computer.$\n$\n\
|
||||||
You will find your ETKEY, profile folder and all downloaded files in the $DOCUMENTS\ETLegacy directory."
|
You will find your ETKEY, profile folder and all downloaded files in the $DOCUMENTS\ETLegacy directory."
|
||||||
!define MUI_FINISHPAGE_RUN "$INSTDIR\etl.exe"
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\etl.exe"
|
||||||
!insertmacro MUI_PAGE_WELCOME
|
!insertmacro MUI_PAGE_WELCOME
|
||||||
|
@ -71,8 +71,8 @@ Section "Enemy Territory: Legacy" FILES
|
||||||
SetOverwrite ifnewer
|
SetOverwrite ifnewer
|
||||||
SetOutPath $INSTDIR
|
SetOutPath $INSTDIR
|
||||||
File /r "etlegacy-windows-${VERSION}\*.*"
|
File /r "etlegacy-windows-${VERSION}\*.*"
|
||||||
SimpleFC::AddApplication "ET:Legacy" "$INSTDIR\etl.exe" 0 2 "" 1
|
SimpleFC::AddApplication "ET: Legacy" "$INSTDIR\etl.exe" 0 2 "" 1
|
||||||
SimpleFC::AddApplication "ET:Legacy server" "$INSTDIR\etlded.exe" 0 2 "" 1
|
SimpleFC::AddApplication "ET: Legacy server" "$INSTDIR\etlded.exe" 0 2 "" 1
|
||||||
; If we compile with /MT we will not need to install the redist (rc4 still had /MD)
|
; If we compile with /MT we will not need to install the redist (rc4 still had /MD)
|
||||||
Call InstallVC
|
Call InstallVC
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
@ -181,7 +181,7 @@ Section "Wolfenstein: Enemy Territory assets" ASSETS
|
||||||
GOTO END
|
GOTO END
|
||||||
|
|
||||||
USERCANCEL:
|
USERCANCEL:
|
||||||
Messagebox MB_OK|MB_ICONEXCLAMATION "Make sure to copy W:ET assets files (pak0.pk3, pak1.pk3, pak2.pk3) into $INSTDIR\etmain before you run ET:Legacy."
|
Messagebox MB_OK|MB_ICONEXCLAMATION "Make sure to copy W:ET assets files (pak0.pk3, pak1.pk3, pak2.pk3) into $INSTDIR\etmain before you run ET: Legacy."
|
||||||
|
|
||||||
END:
|
END:
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
@ -224,19 +224,19 @@ Section -ETKEY
|
||||||
GOTO NOKEY
|
GOTO NOKEY
|
||||||
|
|
||||||
COPYAPPDATA:
|
COPYAPPDATA:
|
||||||
MessageBox MB_YESNO "ETKEY found. Do you want to use it with ET:Legacy?" IDNO END
|
MessageBox MB_YESNO "ETKEY found. Do you want to use it with ET: Legacy?" IDNO END
|
||||||
CreateDirectory `$DOCUMENTS\ETLegacy\etmain`
|
CreateDirectory `$DOCUMENTS\ETLegacy\etmain`
|
||||||
CopyFiles `$LOCALAPPDATA\Punkbuster\ET\etmain\etkey` `$DOCUMENTS\ETLegacy\etmain`
|
CopyFiles `$LOCALAPPDATA\Punkbuster\ET\etmain\etkey` `$DOCUMENTS\ETLegacy\etmain`
|
||||||
GOTO END
|
GOTO END
|
||||||
|
|
||||||
COPYETMAIN:
|
COPYETMAIN:
|
||||||
MessageBox MB_YESNO "ETKEY found. Do you want to use it with ET:Legacy?" IDNO END
|
MessageBox MB_YESNO "ETKEY found. Do you want to use it with ET: Legacy?" IDNO END
|
||||||
CreateDirectory `$DOCUMENTS\ETLegacy\etmain`
|
CreateDirectory `$DOCUMENTS\ETLegacy\etmain`
|
||||||
CopyFiles `$1\etmain\etkey` `$DOCUMENTS\ETLegacy\etmain`
|
CopyFiles `$1\etmain\etkey` `$DOCUMENTS\ETLegacy\etmain`
|
||||||
GOTO END
|
GOTO END
|
||||||
|
|
||||||
NOKEY:
|
NOKEY:
|
||||||
Messagebox MB_OK|MB_ICONINFORMATION "No ETKEY found. ET:Legacy will create a new ETKEY upon start. If you got a Backup of your own ETKEY copy it to $DOCUMENTS\ETLegacy\etmain."
|
Messagebox MB_OK|MB_ICONINFORMATION "No ETKEY found. ET: Legacy will create a new ETKEY upon start. If you got a Backup of your own ETKEY copy it to $DOCUMENTS\ETLegacy\etmain."
|
||||||
GOTO END
|
GOTO END
|
||||||
|
|
||||||
END:
|
END:
|
||||||
|
@ -247,9 +247,9 @@ Section -Shortcuts
|
||||||
CreateDirectory "$SMPROGRAMS\Enemy Territory - Legacy"
|
CreateDirectory "$SMPROGRAMS\Enemy Territory - Legacy"
|
||||||
CreateShortCut "$SMPROGRAMS\Enemy Territory - Legacy\Enemy Territory - Legacy Homepage.lnk" "http://www.etlegacy.com" "" "$INSTDIR\etl.ico"
|
CreateShortCut "$SMPROGRAMS\Enemy Territory - Legacy\Enemy Territory - Legacy Homepage.lnk" "http://www.etlegacy.com" "" "$INSTDIR\etl.ico"
|
||||||
CreateShortCut "$SMPROGRAMS\Enemy Territory - Legacy\Launch Enemy Territory - Legacy.lnk" "$INSTDIR\etl.exe"
|
CreateShortCut "$SMPROGRAMS\Enemy Territory - Legacy\Launch Enemy Territory - Legacy.lnk" "$INSTDIR\etl.exe"
|
||||||
CreateShortCut "$SMPROGRAMS\Enemy Territory - Legacy\Play on ETLegacy.com.lnk" "et://etlegacy.com:27960" "" "$INSTDIR\etl.ico"
|
CreateShortCut "$SMPROGRAMS\Enemy Territory - Legacy\Play on Official Server.lnk" "et://etlegacy.com:27960" "" "$INSTDIR\etl.ico"
|
||||||
CreateShortCut "$SMPROGRAMS\Enemy Territory - Legacy\Uninstall.lnk" "$INSTDIR\uninstall.exe"
|
CreateShortCut "$SMPROGRAMS\Enemy Territory - Legacy\Uninstall.lnk" "$INSTDIR\uninstall.exe"
|
||||||
CreateShortCut "$DESKTOP\ET-Legacy.lnk" "$INSTDIR\etl.exe"
|
CreateShortCut "$DESKTOP\Enemy Territory - Legacy.lnk" "$INSTDIR\etl.exe"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section -Post
|
Section -Post
|
||||||
|
@ -258,7 +258,7 @@ Section -Post
|
||||||
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "Version" "${VERSION}"
|
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "Version" "${VERSION}"
|
||||||
WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "DisplayName" "Enemy Territory: Legacy"
|
WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "DisplayName" "Enemy Territory: Legacy"
|
||||||
WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${VERSION}"
|
WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${VERSION}"
|
||||||
WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "Publisher" "ET:Legacy Team"
|
WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "Publisher" "ET: Legacy Team"
|
||||||
WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "http://www.etlegacy.com"
|
WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "http://www.etlegacy.com"
|
||||||
WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\etl.exe"
|
WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\etl.exe"
|
||||||
WriteRegDWORD HKLM "${PRODUCT_UNINST_KEY}" "NoModify" 1
|
WriteRegDWORD HKLM "${PRODUCT_UNINST_KEY}" "NoModify" 1
|
||||||
|
@ -276,8 +276,8 @@ Function InstallVC
|
||||||
ClearErrors
|
ClearErrors
|
||||||
ReadRegDword $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F8CFEB22-A2E7-3971-9EDA-4B11EDEFC185}" "Version"
|
ReadRegDword $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F8CFEB22-A2E7-3971-9EDA-4B11EDEFC185}" "Version"
|
||||||
IfErrors 0 VSRedistInstalled
|
IfErrors 0 VSRedistInstalled
|
||||||
; Maybe we should just install it and not even comfirm?
|
; Maybe we should just install it and not even confirm?
|
||||||
MessageBox MB_ICONQUESTION|MB_YESNO "ET:Legacy requires MS VC++ 2013 Redistributable, do you want to install it?" IDNO VSRedistMissing
|
MessageBox MB_ICONQUESTION|MB_YESNO "ET: Legacy requires MS VC++ 2013 Redistributable, do you want to install it?" IDNO VSRedistMissing
|
||||||
File /nonfatal "vcredist\vcredist_x86.exe"
|
File /nonfatal "vcredist\vcredist_x86.exe"
|
||||||
; we either use /quiet or /passive, quiet shows nothing and passive show minimal UI with no user interactions
|
; we either use /quiet or /passive, quiet shows nothing and passive show minimal UI with no user interactions
|
||||||
; /nostart do not popup a restart window, we does not want it and we does not need it my precious!
|
; /nostart do not popup a restart window, we does not want it and we does not need it my precious!
|
||||||
|
@ -306,7 +306,7 @@ FunctionEnd
|
||||||
; UNINSTALL
|
; UNINSTALL
|
||||||
; ------------------------
|
; ------------------------
|
||||||
|
|
||||||
Section "un.ET:Legacy" UNFILES
|
Section "un.ET: Legacy" UNFILES
|
||||||
SectionIN RO
|
SectionIN RO
|
||||||
Delete "$INSTDIR\*.*"
|
Delete "$INSTDIR\*.*"
|
||||||
Delete "$INSTDIR\etmain\*.cfg"
|
Delete "$INSTDIR\etmain\*.cfg"
|
||||||
|
@ -315,18 +315,18 @@ Section "un.ET:Legacy" UNFILES
|
||||||
DeleteRegKey HKLM "${PRODUCT_UNINST_KEY}"
|
DeleteRegKey HKLM "${PRODUCT_UNINST_KEY}"
|
||||||
DeleteRegKey HKCR "et"
|
DeleteRegKey HKCR "et"
|
||||||
RMDir /r "$SMPROGRAMS\Enemy Territory - Legacy"
|
RMDir /r "$SMPROGRAMS\Enemy Territory - Legacy"
|
||||||
Delete "$DESKTOP\ET-Legacy.lnk"
|
Delete "$DESKTOP\Enemy Territory - Legacy.lnk"
|
||||||
SimpleFC::RemoveApplication "$INSTDIR\etl.exe"
|
SimpleFC::RemoveApplication "$INSTDIR\etl.exe"
|
||||||
SimpleFC::RemoveApplication "$INSTDIR\etlded.exe"
|
SimpleFC::RemoveApplication "$INSTDIR\etlded.exe"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section /o "un.Wolf:ET assets" UNASSETS
|
Section /o "un.Wolf: ET assets" UNASSETS
|
||||||
Delete "$INSTDIR\etmain\*.pk3"
|
Delete "$INSTDIR\etmain\*.pk3"
|
||||||
RMDir "$INSTDIR\etmain"
|
RMDir "$INSTDIR\etmain"
|
||||||
RMDir "$INSTDIR"
|
RMDir "$INSTDIR"
|
||||||
SectionEND
|
SectionEND
|
||||||
|
|
||||||
Section /o "un.ET:Legacy User files" WOLFETL
|
Section /o "un.ET: Legacy User files" WOLFETL
|
||||||
RMDir /r "$DOCUMENTS\ETLegacy"
|
RMDir /r "$DOCUMENTS\ETLegacy"
|
||||||
SectionEND
|
SectionEND
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue