Use this project:
https://github.com/deno-windowing/dwm/
They include DearImGUI port.
Check their examples: https://github.com/deno-windowing/dwm/tree/main/examples
winget install DenoLand.Deno
# close and re-open terminal to get new env varstl;dr:
# Run it
$ deno run --unstable-ffi -A ./imgui2.ts
# Compile to EXE
$ deno compile --unstable-ffi -A ./imgui2.ts
$ ./imgui2.exeGotta pass --unstable-ffi cuz it uses FFI to call OS's native DLLs.
deno run -A --unstable-ffi ./my-gui.ts
deno run -A --unstable-ffi https://deno.land/x/dwm/examples/imgui2.tsdeno compile --unstable-ffi -A -o my-gui.exe ./my-gui.ts
deno compile --unstable-ffi -A https://deno.land/x/dwm/examples/imgui2.ts # spits out imgui2.exe demoDeno has a --no-terminal flag for deno compile which emits an exe that doesn't open terminal on Windows, but at time
of writing it's broken.
deno compile --no-terminal --unstable-ffi -A -o my-gui.exe .\my-gui.ts