diff options
author | Araq <rumpf_a@web.de> | 2010-10-21 00:12:14 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2010-10-21 00:12:14 +0200 |
commit | 765366c1f377fbd9507e942385170b546d9d34d0 (patch) | |
tree | bffec904c5b980aa7b9c0961cda18d5dd30638ae /tools/niminst.nim | |
parent | 53cd61546dc798fc0f08baf0813f579a90d7e766 (diff) | |
download | Nim-765366c1f377fbd9507e942385170b546d9d34d0.tar.gz |
version 0.8.10
Diffstat (limited to 'tools/niminst.nim')
-rwxr-xr-x | tools/niminst.nim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/niminst.nim b/tools/niminst.nim index a93ea2ef8..292ea4a9e 100755 --- a/tools/niminst.nim +++ b/tools/niminst.nim @@ -49,7 +49,7 @@ type binPaths, authors, oses, cpus: seq[string] cfiles: array[1..maxOS, array[1..maxCPU, seq[string]]] ccompiler, innosetup: tuple[path, flags: string] - name, version, description, license, infile, outdir: string + name, displayName, version, description, license, infile, outdir: string innoSetupFlag, installScript, uninstallScript: bool vars: PStringTable app: TAppType @@ -70,6 +70,7 @@ proc initConfigData(c: var TConfigData) = c.ccompiler = ("", "") c.innosetup = ("", "") c.name = "" + c.displayName = "" c.version = "" c.description = "" c.license = "" @@ -98,7 +99,7 @@ include "deinstall.tmpl" # ------------------------- configuration file ------------------------------- const - Version = "0.8" + Version = "0.9" Usage = "niminst - Nimrod Installation Generator Version " & version & """ (c) 2010 Andreas Rumpf @@ -209,6 +210,7 @@ proc parseIniFile(c: var TConfigData) = of "project": case normalize(k.key) of "name": c.name = v + of "displayname": c.displayName = v of "version": c.version = v of "os": c.oses = split(v, {';'}) of "cpu": c.cpus = split(v, {';'}) @@ -249,6 +251,7 @@ proc parseIniFile(c: var TConfigData) = of cfgError: quit(errorStr(p, k.msg)) close(p) if c.name.len == 0: c.name = changeFileExt(extractFilename(c.infile), "") + if c.displayName.len == 0: c.displayName = c.name else: quit("cannot open: " & c.infile) @@ -363,6 +366,7 @@ when haveZipLib: else: n = c.outdir / n var z: TZipArchive if open(z, n, fmWrite): + addFile(z, proj / buildBatFile, buildBatFile) addFile(z, proj / buildShFile, buildShFile) addFile(z, proj / installShFile, installShFile) addFile(z, proj / deinstallShFile, deinstallShFile) |