-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rcedit.exe is not working on Windows #53
Comments
On Monday, June 1, 2015, iamdriz notifications@github.com wrote:
Sent from my phone |
Just for verification, rcedit.exe is available and in the path? |
But I'm on a windows platform... That article says for building windows apps on non windows platforms. Sent from my iPhone
|
@iamdriz you need it on any platform. I assumed it came with windows but I am probably mistaken (I don't test on windows, I rely on windows to fix issues like that). Can you see if you have |
@maxogden rcedit.exe is a tool made by the electron team for editing Windows executables... it does not come with Windows. We should update the readme! |
But it does come with the node module We should make sure everything is correct here: https://github.com/maxogden/electron-packager/blob/ac8aea014e04fa65a234f7398aca864f0524fecc/win32.js#L109 But I have a strong feeling it's something with |
ah ok I figured it was some sort of minimal polyfill for non windows sytems On Mon, Jun 1, 2015 at 3:14 PM, jden notifications@github.com wrote:
|
Where should rcedit.exe live in relation to the Gruntfile.js? I've tried it at the same level but doesn't seem to have fixed the issue with the icon. |
@iamdriz when you |
And where does this come from? And by relative you mean it's a node module inside the electron-packager folder. Sent from my iPhone
|
Yes, it is distributed in the |
Okay I installed |
I'm also running into an issue of the icon not being set but I'm on os x. Here's the command I'm running:
When it builds, it seems to flash to the default Electron icon from another state. This could be the custom icon or the default "Paper and pencils" os x icon. Are there any file size / type / dimension restrictions to be aware of? I've tried it with png, ico and icns. |
@mhkeller I think your problem is different, this is Windows-specific. The OSX app requires an icns file. |
Hi, The It seems |
👍 thanks @IronGeek I was seeing the same error when manually running When I run the same command to build my app for Windows from an OS X dev environment, rcedit runs correctly, so there is obviously still something screwy going on on my Windows dev env... 😕 |
I have been struggling all day long with this issue without success. Once I had fixed the MSVCP100.dll issue, the next one was The application was unable to start correctly (0xc000007b) and I gave up at this stage :( I went for Resource Hacker which seemed to work so fare here is my script. Do that before signing and putting it in installer
|
Some details about my failing environment and I how I fixed it, largely confirming @IronGeek's and @kethinov's posts:
So, perhaps this is just fixed by updating to the latest VC++ toolchain? Though I know that didn't quite work for @kethinov. |
I am very grateful for this thread, which walked me all the way through up to getting the application having our customized icon. For reference:
Now I'm working on why the desktop shortcut that points to the correctly iconified application is still itself Electron's icon. If I figure it out I'll report back to this thread. |
In the Properties of the shortcut, one can select the icon from among those in the exe. n.b. this is the Windows dialog. I changed it to the one my app presented (the customized one). I changed no code. In future runs of rebuilds of the installer, the shortcut was installed with the correct customized icon. Registry madness? |
It's been a while since I've dealt with Windows, but I thought desktop shortcuts defaulted to the icon of the |
I have an earlier snapshot of the VM I am using; perhaps I can fork the VM from there and see if I can replicate the issue. |
Windows shortcut icons default to the default app icon, but they can also be set to any icon resource, e.g., another icon resource embedded in the target executable or an icon resource in a dll. I know there are ways to change this programmatically, a super quick search brings up https://blogs.technet.microsoft.com/heyscriptingguy/2005/08/12/how-can-i-change-the-icon-for-an-existing-shortcut/ - hope this helps point in the right direction! |
I have the following options for my grunt task:
but the icon isn't applied to the final dist app... I just get the default Electron icon.
The ico file is valid and at the specified location!
Tried on Windows 7.
The text was updated successfully, but these errors were encountered: