Custom executable icon for `deno compile`?
Is it possible to set a different icon rather than the default deno icon for the executable generated from
deno compile
?10 Replies
I wasn't able to find the answer to your question in the official Deno documentation. As of my last update, the
deno compile
command does not provide an option to customize the icon of the generated executable directly through its command-line interface or API.
However, I can suggest that typically, changing an executable's icon is platform-specific and often requires additional tooling outside of the compilation process itself. For instance, on Windows, you might use a resource editor to change the icon after the executable has been compiled. On macOS, you would modify the .app
bundle's resources.
Please note that this advice is not based on the Deno documentation, and I would recommend double-checking the accuracy of this information and looking for platform-specific tools or methods that can help you achieve your goal.Hi,
I have the same problem. As soon as i try to change the description/icon of my .exe, it gets corrupted. Even if i just change the plain text in Resource Hacker, the Executable doesn't work anymore.
GitHub
GitHub - Leokuma/wincompile: Compile Deno apps for Windows with cus...
Compile Deno apps for Windows with custom icon and metadata. - GitHub - Leokuma/wincompile: Compile Deno apps for Windows with custom icon and metadata.
Thank you for the porgramm. wincompile works so far but when we try to implement it to our code that also generates a hash of the compiled .exe ot doesn't save the executable.
The system cannot find the file specified.
Do this to see the error message:
I suspect you're having problems to load or apply the icon
Thats the error i'm getting
And if i remove the arg that's causing the error, i'm getting other errors
So
If i remove the arguments: --Icon, --FileVersion, --ProductVersion it works
But if i run wincompile just in Terminal, it doesn't have any problems with my icon
Maybe you have to separate the argument name from argument value
So,
The problem is fixed, it works.
The problem was that this
""
was unecessery. I noticed that in the properties of the .exe for example the Description was "UniConvert"
not UniConvert
. I removed the quotation marks and it works perfectly{args: ['--LegalCopyright', 'OhHellNaw']}
instead of {args: ['--LegalCopyright=OhHellNaw']}
š