Skip to content

Commit 2d0bcbb

Browse files
Improve folder structure and update nquake.ini URL.
1 parent 043a0a3 commit 2d0bcbb

32 files changed

+26
-30
lines changed

.gitignore

+1-24
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,6 @@
11
# Compiled source #
22
###################
3-
*.com
4-
*.class
5-
*.dll
6-
*.o
7-
*.so
8-
9-
# Packages #
10-
############
11-
# it's better to unpack these files and commit the raw source
12-
# git has its own built in compression methods
13-
*.7z
14-
*.dmg
15-
*.gz
16-
*.iso
17-
*.jar
18-
*.rar
19-
*.tar
20-
*.zip
21-
22-
# Logs and databases #
23-
######################
24-
*.log
25-
*.sql
26-
*.sqlite
3+
src/*.dll
274

285
# OS generated files #
296
######################

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
nQuake Server for Windows
2+
======
3+
4+
To compile an nQuake Server installer, follow these steps:
5+
6+
1) Download NSIS (http://nsis.sourceforge.net/) - version 2.x or v3.0+ doesn't matter.<br>
7+
2) Copy/move the folders in the `include` folder to `C:\Program Files (x86)\NSIS\`.<br>
8+
_For NSIS v3.0+ you need to move the plugins (.dll files) to the "x86-ansi" subfolder of "Plugins"._<br>
9+
3) Right-click the `nquakesv-installer_source.nsi` file and open with makensisw.exe.<br>
10+
11+
Tips:<br>
12+
* Most of the code resides in `nquakesv-installer_source.nsi` but some code that is used often can be found in `nquake-macros.nsh`.<br>
13+
* Edit the contents of the installer pages in the .ini files and their functions in the installer source file (e.g. Function DOWNLOAD for the download page).<br>
14+
15+
If you decide to fork nQuakesv into your own installer, I would love to get some credit, but since this is GPL I can't force you :)
16+
17+
-
18+
2016-07-01
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

nquakesv_installer.exe

-311 KB
Binary file not shown.

releases/nquakesv17_installer.exe

303 KB
Binary file not shown.
303 KB
Binary file not shown.

addons.ini src/addons.ini

File renamed without changes.

changelog.txt src/changelog.txt

File renamed without changes.

config.ini src/config.ini

File renamed without changes.
File renamed without changes.

download.ini src/download.ini

File renamed without changes.

errors.ini src/errors.ini

File renamed without changes.
File renamed without changes.

gnu.txt src/gnu.txt

File renamed without changes.

license.txt src/license.txt

File renamed without changes.
File renamed without changes.
File renamed without changes.

nquakesv-installer_source.nsi src/nquakesv-installer_source.nsi

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
;nQuakesv NSIS Online Installer Script
2-
;By Empezar 2013-08-03; Last modified 2014-03-16
2+
;By Empezar 2013-08-03; Last modified 2016-07-01
33

4-
!define VERSION "1.6"
5-
!define SHORTVERSION "16"
4+
!define VERSION "1.7"
5+
!define SHORTVERSION "17"
66

77
Name "nQuakesv"
88
OutFile "nquakesv${SHORTVERSION}_installer.exe"
99
InstallDir "C:\nQuakesv"
1010

11-
!define INSTALLER_URL "http://nquake.com" # Note: no trailing slash!
11+
!define NQUAKE_URL "http://nquake.com" # Note: no trailing slash!
12+
!define NQUAKE_INI_URL "https://raw.githubusercontent.com/nQuake/client-win32/master/etc/nquake.ini" # Note: no trailing slash!
1213
!define DISTFILES_PATH "$LOCALAPPDATA\nQuakesv\" # Note: no trailing slash!
1314

1415
# Editing anything below this line is not recommended
@@ -1368,7 +1369,7 @@ Function .onInit
13681369

13691370
# Download nquake.ini
13701371
Start:
1371-
inetc::get /NOUNLOAD /CAPTION "Initializing..." /BANNER "nQuakesv is initializing, please wait..." /TIMEOUT 5000 "${INSTALLER_URL}/nquake.ini" $NQUAKE_INI /END
1372+
inetc::get /NOUNLOAD /CAPTION "Initializing..." /BANNER "nQuakesv is initializing, please wait..." /TIMEOUT 5000 "${NQUAKE_INI_URL}" $NQUAKE_INI /END
13721373
Pop $0
13731374
${Unless} $0 == "OK"
13741375
${If} $0 == "Cancelled"
@@ -1398,7 +1399,7 @@ Function .onInit
13981399
${VersionCompare} $R0 $0 $1
13991400
${If} $1 == 2
14001401
MessageBox MB_YESNO|MB_ICONEXCLAMATION "A newer version of nQuakesv is available.$\r$\n$\r$\nDo you wish to be taken to the download page?" IDNO ContinueInstall
1401-
ExecShell "open" ${INSTALLER_URL}
1402+
ExecShell "open" ${NQUAKE_URL}
14021403
Abort
14031404
${EndIf}
14041405
ContinueInstall:
File renamed without changes.
File renamed without changes.

nquakesv.ico src/nquakesv.ico

File renamed without changes.

uninstall.ini src/uninstall.ini

File renamed without changes.

0 commit comments

Comments
 (0)