-
I have script that accept filepath, and run several additional binaries. // mainProgram.ts
const datafile = Deno.args[0];
const subProgramPath = new URL('subProgram.exe', import.meta.url)
Deno.run({
cmd: [subProgramPath, datafile, '--some-args']
}) I want to compile this script into an executable The The problem is that after compilation, the How I should resolve path to I should note that my users can simply drag and drop a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
Deno.execPath()
return the path of the compiled script when you usedeno compile
(when usingdeno run
it returns the path of the deno executable).