Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
drkameleon committed May 18, 2024
1 parent ead07b5 commit f9cea57
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/vm/bundle/generator.nim
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ proc lookForNim() = commandExists("nim")
proc lookForGit() = commandExists("git")

proc cloneArturo() =
removeDir(TmpFolder)
when defined(DEV):
copyDirRecursively(getCurrentDir(), TmpFolder)
else:
Expand Down Expand Up @@ -367,16 +368,16 @@ proc buildExecutable(conf: BundleConfig) =
if forceFull:
mode = ""

let (outp, res) = execCmdEx("./build.nims build " & conf.configFile() & " --bundle " & mode & " " & forceFlags & " --as " & conf.name)
let (outp, res) = execCmdEx("./build.nims build " & conf.configFile() & " --bundle " & mode & " " & forceFlags & " --log --as " & conf.name)
if res != 0:
echo "\tSomething went wrong went building the project..."
echo outp
quit(1)

copyFile(TmpFolder / "bin" / conf.name, currentFolder / conf.name)

setCurrentDir(currentFolder)

copyFile(TmpFolder / "bin" / conf.name, currentFolder / conf.name)

proc cleanUp() =
removeDir(TmpFolder)

Expand Down

0 comments on commit f9cea57

Please sign in to comment.