deno icon indicating copy to clipboard operation
deno copied to clipboard

Allow setting the icon for `deno compile` output binary

Open eliassjogreen opened this issue 4 years ago • 13 comments

A useful feature for deno compile would be changing the binary icon to a custom .ico provided by a --icon flag.

eliassjogreen avatar Dec 29 '20 03:12 eliassjogreen

Not sure if this can be done without adding a runtime dependency on developer tools? e.g on Windows you need rc.exe

caspervonb avatar Dec 29 '20 03:12 caspervonb

Not sure if this can be done without adding a runtime dependency on developer tools? e.g on Windows you need rc.exe

Well, when you use deno to compile you are already in "development tools land", so I think this is acceptable as long as deno is usable as a runtime without these dependencies.

Spoonbender avatar Jan 05 '21 17:01 Spoonbender

I think most people developing using windows already have either the Windows Sdk or minGW64 installed as required by winres, a crate for editing executable resources. This could be kept as an unstable feature as it requires an external dependency. For osx it seems to be quite easy according to this stackoverflow question only requiring hdiutil which seems to be a default tool on osx.

eliassjogreen avatar Jan 05 '21 19:01 eliassjogreen

Not sure if this can be done without adding a runtime dependency on developer tools? e.g on Windows you need rc.exe

Reading/writing EXE resources in pure JavaScript is definitely possible, there's an NPM module which can do it (https://www.npmjs.com/package/resedit).

AlexanderOMara avatar Jun 30 '21 00:06 AlexanderOMara

Are there any updates on this? I'd love to have this too.

Sv443 avatar Oct 13 '21 13:10 Sv443

Using any form of res edit has failed for me - the Deno compiled EXE ends up completely corrupted.

gm112 avatar Feb 21 '22 04:02 gm112

I think it's to do with the different size of the image, so it reads from the wrong point.

soshimee avatar May 20 '22 15:05 soshimee

bump

viceywiceyuwu avatar Sep 05 '22 10:09 viceywiceyuwu

Ah, so this is not yet possible.

NetOpWibby avatar Nov 28 '22 23:11 NetOpWibby

Is this problem still unsolved?

KohnoseLami avatar Aug 31 '23 22:08 KohnoseLami

Even defaulting to no icon or a blank icon would be preferable to the deno icon.

Since a compiled deno script isn't deno itself, IMO, it doesn't make sense to have the icon default to the deno icon. Also a blank icon would allow developers to distribute the executable without having to mess around with sketchy 3rd party software to change the icon.

jdoleary avatar Sep 17 '23 17:09 jdoleary

It's time to add this feature

litttley avatar Dec 05 '23 08:12 litttley

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

Leokuma avatar Dec 25 '23 19:12 Leokuma

Still unsolved? Would be nice to see this feature implemented soon...

harvestcore avatar Jun 14 '24 11:06 harvestcore