question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request: --ico should not really require a rebuild

See original GitHub issue

Currently it’s quite inconvenient and confusing (not clear) that --ico option requires --build. It is possible (and easy enough) to change the icon and other resources of an executable, for example by using https://github.com/electron/rcedit

However, applying this tool on the final nexe app (after the script is embedded) will break the executable: image

I assume it can be safely applied to a pre-built executable

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
calebboydcommented, Mar 30, 2019

@simonbuchan de42dd94adf9b1fe6bdf438359965a532540a5f8 re-orders the download step and its now performed before the plugins/patches run. So patches can operate on the file.

1reaction
simonbuchancommented, Mar 29, 2019

With further testing, the above doesn’t quite work for this in general: the problem is that patches and plugins are the last arguments to compose in nexe.ts, which means they can’t run any code after the cli step pulls down the binary.

Probably the simplest workaround is to just use the plugin to grab the output path, then run outside the compile call:

let location;
await compile({
  ...
  plugins: [
    (compiler, next) => {
      location = compiler.getNodeExecutableLocation(compiler.target);
      return next();
    }
  ]
})

await promisify(rcedit)(location, { icon: ico, "version-string": rc });
Read more comments on GitHub >

github_iconTop Results From Across the Web

Rebuild Icon Cache in Windows 11 Tutorial
5 Follow the instructions in the command prompt to rebuild the icon cache. If you do not restart the PC now, you will...
Read more >
Visual Studio will not show my .ico for project icon
This process should be so simple and easy to implement, just changing the solution's icon to an acceptable-format icon.
Read more >
Setup project and data file problems redux - MSDN - Microsoft
We only need to rebuild the project and the Visual Studio Setup project, with the application project's primary output in it. Then you...
Read more >
Has the ICO really given up? - Farrer & Co
The ICO acknowledged that diverted resources and new priorities would see changed approaches and understandable delays in dealing with subject ...
Read more >
Information Commissioner calls for an end to the excessive ...
“Change is required to rebuild trust that will enable more victims to seek the justice to which they're entitled.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found