install_nimble script works with newest Nimble version
This commit is contained in:
parent
ec971a2c9d
commit
93df1bc11a
1 changed files with 6 additions and 0 deletions
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
import ospaths
|
||||
|
||||
mode = ScriptMode.Verbose
|
||||
|
||||
var id = 0
|
||||
|
|
@ -10,4 +12,8 @@ exec "git clone https://github.com/nim-lang/nimble.git nimble" & $id
|
|||
withDir "nimble" & $id & "/src":
|
||||
exec "nim c nimble"
|
||||
|
||||
mkDir "bin/nimblepkg"
|
||||
for file in listFiles("nimble" & $id & "/src/nimblepkg/"):
|
||||
cpFile file, "bin/nimblepkg/" & file.extractFilename
|
||||
|
||||
mvFile "nimble" & $id & "/src/nimble".toExe, "bin/nimble".toExe
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue