diff options
author | Araq <rumpf_a@web.de> | 2017-01-29 00:32:16 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-01-29 00:32:25 +0100 |
commit | 3aeece4456ba5a6d6295ed983c186b20b62b7236 (patch) | |
tree | 8ab2956bee24e6abd916dc03a3a935795eb64b18 /tools/niminst | |
parent | edd542fe6ba668374305cee53390c8b1ef78f87f (diff) | |
download | Nim-3aeece4456ba5a6d6295ed983c186b20b62b7236.tar.gz |
niminst: add some disabled code snippet I don't want to lose
Diffstat (limited to 'tools/niminst')
-rw-r--r-- | tools/niminst/niminst.nim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/niminst/niminst.nim b/tools/niminst/niminst.nim index 76f384fc1..4478151be 100644 --- a/tools/niminst/niminst.nim +++ b/tools/niminst/niminst.nim @@ -669,7 +669,15 @@ proc xzDist(c: var ConfigData; windowsZip=false) = try: if windowsZip: if execShellCmd("7z a -tzip $1.zip $1" % proj) != 0: - echo("External program failed") + echo("External program failed (zip)") + when false: + writeFile("config.txt", """;!@Install@!UTF-8! +Title="Nim v$1" +BeginPrompt="Do you want to configure Nim v$1?" +RunProgram="tools\downloader.exe" +;!@InstallEnd@!""" % NimVersion) + if execShellCmd("7z a -sfx7zS2.sfx -t7z $1.exe $1" % proj) != 0: + echo("External program failed (7z)") else: if execShellCmd("XZ_OPT=-9 gtar Jcf $1.tar.xz $1 --exclude=.DS_Store" % proj) != 0: |