denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
93.95k stars 5.23k forks source link

User control of compile binary meta data #9395

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi.

  1. Do I have the right to sell a CLI application written with the Deno compile command? The information contains copyright information

Screenshot_1

  1. If I want to make a free open source CLI app - can I change the Deno icon? If so, how do I do it?

Thanks...

ry commented 3 years ago

Yes you can sell the output of “deno compile”.... we probably need to do some work to remove logo and other metadata...

eliassjogreen commented 3 years ago

Related to #8912, would require rc.exe on windows.

ghost commented 3 years ago

In golang, there is an option for launching the executable in "GUI" mode, in order to hide the console:

go build -ldflags "-H windowsgui" -o application.exe

This is something that would be nice to have too in deno, for example in the case of a GUI application launched with the default browser and coupled to a local deno backend. Double-clicking the compiled deno application file would only open the default browser via Deno.open(url), and not the deno console itself.

Leokuma commented 8 months ago

Guys, I made a Deno program that allows you to compile Deno apps with custom icon and metadata: https://github.com/Leokuma/wincompile

littledivy commented 4 weeks ago

Icons are now supported: deno compile --icon icon.ico (#25039)

Other metadata is cleared by default for binaries produced by deno compile