downloader tool needs to use https
This commit is contained in:
parent
a62c60ef87
commit
eb9efed64b
2 changed files with 2 additions and 2 deletions
2
koch.nim
2
koch.nim
|
|
@ -223,7 +223,7 @@ proc bundleWinTools() =
|
||||||
copyExe("tools/finish".exe, "finish".exe)
|
copyExe("tools/finish".exe, "finish".exe)
|
||||||
removeFile("tools/finish".exe)
|
removeFile("tools/finish".exe)
|
||||||
nimexec("c -o:bin/vccexe.exe tools/vccenv/vccexe")
|
nimexec("c -o:bin/vccexe.exe tools/vccenv/vccexe")
|
||||||
nimexec(r"c --cc:vcc --app:gui -o:downloader.exe --noNimblePath " &
|
nimexec(r"c --cc:vcc --app:gui -o:bin\downloader.exe -d:ssl --noNimblePath " &
|
||||||
r"--path:..\ui tools\downloader.nim")
|
r"--path:..\ui tools\downloader.nim")
|
||||||
|
|
||||||
proc zip(args: string) =
|
proc zip(args: string) =
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ proc download(pkg: string; c: Controls) {.async.} =
|
||||||
|
|
||||||
client.onProgressChanged = onProgressChanged
|
client.onProgressChanged = onProgressChanged
|
||||||
# XXX give a destination filename instead
|
# XXX give a destination filename instead
|
||||||
let contents = await client.getContent("http://nim-lang.org/download/" & pkg & ".zip")
|
let contents = await client.getContent("https://nim-lang.org/download/" & pkg & ".zip")
|
||||||
let z = "dist" / pkg & ".zip"
|
let z = "dist" / pkg & ".zip"
|
||||||
# XXX make this async somehow:
|
# XXX make this async somehow:
|
||||||
writeFile(z, contents)
|
writeFile(z, contents)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue