Nanashi.
Nanashi.2y ago

How to get the path of compiled executable?

ssia
3 Replies
Nanashi.
Nanashi.OP2y ago
Stack Overflow
How to get absolute path of compiled deno executable?
I want to get executable (artifact from deno compile) path in script. I tried import.meta.url, Deno.mainModule and Deno.args but none of them works. import.meta.url didn't changed even if executable
Nanashi.
Nanashi.OP2y ago
nvm, I found
NeTT
NeTT2y ago
You can set your own path using
$ deno compile -o "path/to/output/file" "path/to/js/file"
$ deno compile -o "path/to/output/file" "path/to/js/file"
It defaults to the file name (if the file is not like mod.ts)

Did you find this page helpful?