From 9b0c8d497df874e039b491f829d6e8fc1af2cba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Mon, 20 May 2024 11:36:18 +0200 Subject: [PATCH] changing exec cmd + debugging --- src/vm/bundle/generator.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vm/bundle/generator.nim b/src/vm/bundle/generator.nim index 96981e4a02..98945976a0 100644 --- a/src/vm/bundle/generator.nim +++ b/src/vm/bundle/generator.nim @@ -359,7 +359,9 @@ proc debug(conf: BundleConfig) = proc buildExecutable(conf: BundleConfig) = let currentFolder = getCurrentDir() + echo "currentDir: " & getCurrentDir() setCurrentDir(TmpFolder) + echo "currentDir became: " & getCurrentDir() var mode = if conf.nomini: "" @@ -371,7 +373,7 @@ proc buildExecutable(conf: BundleConfig) = if forceFull: mode = "" - let (outp, res) = execCmdEx("./build.nims build " & conf.configFile() & " --bundle " & mode & " " & forceFlags & " --log --as " & conf.name) + let (outp, res) = execShellCmd("./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