D
Deno

help

Custom executable icon for `deno compile`?

DDNA12/25/2023
Is it possible to set a different icon rather than the default deno icon for the executable generated from deno compile?
DAHDeno AI Helper12/25/2023
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.
FFabix12/26/2023
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.
LLeokuma12/27/2023
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.
FFabix12/27/2023
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.
DDNA12/27/2023
The system cannot find the file specified.
LLeokuma12/28/2023
Do this to see the error message:
const {stdout, stderr} = new Deno.Command('wincompile.cmd', {args: [blablabla keep your args here],
stdout: 'piped',
stderr: 'piped',
}).outputSync();

if (stdout.length) console.log(new TextDecoder().decode(stdout));
if (stderr.length) console.log(new TextDecoder().decode(stderr));
const {stdout, stderr} = new Deno.Command('wincompile.cmd', {args: [blablabla keep your args here],
stdout: 'piped',
stderr: 'piped',
}).outputSync();

if (stdout.length) console.log(new TextDecoder().decode(stdout));
if (stderr.length) console.log(new TextDecoder().decode(stderr));
I suspect you're having problems to load or apply the icon
FFabix12/28/2023
The first character of the ProductVersion must be a number.
FileVersion can only contain numbers and dots, and must begin with a number.
The first character of the ProductVersion must be a number.
FileVersion can only contain numbers and dots, and must begin with a number.
Thats the error i'm getting And if i remove the arg that's causing the error, i'm getting other errors
Fatal error: Unable to set icon
Fatal error: Unable to set icon
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
LLeokuma12/28/2023
Maybe you have to separate the argument name from argument value
FFabix12/28/2023
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
LLeokuma12/28/2023
{args: ['--LegalCopyright', 'OhHellNaw']} instead of {args: ['--LegalCopyright=OhHellNaw']} 👍

Looking for more? Join the community!

Recommended Posts
Deno.Command output as it runsHello, I am trying to run a command and have its output be logged as it runs , but for some reason telectrons using denoIn the recent deno version I see it is possible to runn executable in ./bin in node_modules using Cannot find moduleHi <:vmathi:812484657547313212> I'm trying to run a project with Deno, but i'm getting "Cannot find Uncaught error during deno deploy of vite appWhen creating a new vite app with vue and typescript I get this error message. This error is reprodDeno, TypeScript, ESBuild, WebGL, VSCodeHello! As the title suggests, I am using these technologies to create a web application: * Deno * TPossible issue with re-export compatibility with NodeIn https://github.com/japa/runner/issues/35, I have described an issue where Deno seems to be incompMake deno.serve handler asynchronousHow can i make the Deno.serve handler asynchronous? or like make it so that it can execute asynchronWhy my place.x -= 5 not working?At this part if(moveKey.right.pressed) { finishPostion += 5 quota exceededi hit the free limit tonight and upgraded to pro 20 minutes ago— when do my sites stop erroring withDeploying WASM via Deno Deploy Github ActionsHello, I'm trying to deploy a Leptos project that serves a .wasm bundle for the frontend, and uses Get only the first records with deno kv but reversed orderedI'm using Deno KV to store articles. Generating the ID for the articles: ``` export function generaerror: Uncaught (in promise) SyntaxError: Invalid regular expression flagsAfter Updating my fresh to latest version I got following error ``` deno task start Task start deno third party module repo changeI'm the author of a third party deno module: https://deno.land/x/streamdal_protos@v0.0.126. My comDeno.serve get full path instead of only params and urlI need to get params from an url like this `http://localhost:8000/auth#token_type=Bearer&access_tokeSend custom response inside error event listenerIf I add an event listener for errors in Deno to catch anything my middleware error handler doesn't,assertThrows() limitationsassertThrows() seems to only filter on class name and message. Is there an assert function for checkLSP/VSCode stops workingI'm having issues in my fresh project time to time it stops working and I have to restart it or vscoCan the listeners for messages from Deno Deploy Queues timeout?Can the listeners for messages from Deno Deploy Queues timeout like Vercel serverless functions? AreHow to get the path to the compiled binary?`import.meta.url` and `Deno.mainModule` are used to get the current script, but after a binary is crHow to get `require.main.filename` like Node as DenoI am making a module to be published on deno.land/x. I want the user to put a file describing the co