koch.nim: remove old bin/nimblepkg/*.nim files for nimble installation
This commit is contained in:
parent
cdfa34554c
commit
8500600090
1 changed files with 4 additions and 0 deletions
4
koch.nim
4
koch.nim
|
|
@ -184,6 +184,10 @@ proc bundleNimbleExe() =
|
||||||
copyExe("dist/nimble/src/nimble".exe, "bin/nimble".exe)
|
copyExe("dist/nimble/src/nimble".exe, "bin/nimble".exe)
|
||||||
|
|
||||||
proc buildNimble(latest: bool) =
|
proc buildNimble(latest: bool) =
|
||||||
|
# old installations created nim/nimblepkg/*.nim files. We remove these
|
||||||
|
# here so that it cannot cause problems (nimble bug #306):
|
||||||
|
if dirExists("bin/nimblepkg"):
|
||||||
|
removeDir("bin/nimblepkg")
|
||||||
var installDir = "dist/nimble"
|
var installDir = "dist/nimble"
|
||||||
if not dirExists("dist/nimble/.git"):
|
if not dirExists("dist/nimble/.git"):
|
||||||
# if dist/nimble exist, but is not a git repo, don't mess with it:
|
# if dist/nimble exist, but is not a git repo, don't mess with it:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue