Skip to content
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

Windows: Failed to modify resources #243

Closed
jkudish opened this issue Mar 15, 2016 · 11 comments · May be fixed by qcif/data-curator#563
Closed

Windows: Failed to modify resources #243

jkudish opened this issue Mar 15, 2016 · 11 comments · May be fixed by qcif/data-curator#563
Assignees
Labels

Comments

@jkudish
Copy link

jkudish commented Mar 15, 2016

Trying to build an app for Windows, from Windows, I get a "Failed to modify resources" error. See full log here

Seems to be related to Squirrel/Squirrel.Windows#488 and to electron-archive/grunt-electron-installer#96 though I am not positive it's the exact same error or not.

Despite the error, the build completes (but setup icon isn't set)

@jkudish
Copy link
Author

jkudish commented Mar 15, 2016

FWIW I tried to follow the steps here but that didn't help.

@develar
Copy link
Member

develar commented Mar 16, 2016

@jkudish Looks like icon is missed, see https://github.com/loopline-systems/electron-builder#in-short about icons (step 2 "icon.ico (Windows app icon)").

@jkudish
Copy link
Author

jkudish commented Mar 16, 2016

I have the URL specified as per the documentation in my app/package.json not in the main development (root project level) package.json. Should it be in both?

@develar
Copy link
Member

develar commented Mar 17, 2016

Under the hood we also set setupIcon (https://github.com/electronjs/windows-installer#usage) So, file build/icon.ico must exists. Do you have it?

@jkudish
Copy link
Author

jkudish commented Mar 17, 2016

Yep, I have the file, and I have it in my config too:

"build": {
        "iconUrl": "https://app.theimagesalon.com/public/imgsalon.ico",
        "osx": { ... },
        "win": {
            "title": "The Image Salon",
            "publisher": "The Image Salon",
            "authors": "The Image Salon",
            "iconUrl": "https://app.theimagesalon.com/public/imgsalon.ico",
            "setupIcon": "build/icon.ico"
        }
    },

@jbleuzen
Copy link

I have the same error when building on a Win10 VM (x64). On another VM Win7 (ia32) we don't have this problem....

@jkudish
Copy link
Author

jkudish commented Mar 18, 2016

Hmm good to know @jbleuzen -- I'll try a Win7 VM

@develar develar self-assigned this Mar 18, 2016
@jkudish
Copy link
Author

jkudish commented Mar 20, 2016

Tried in a Win7 VM (ia32). Same problem.

@jkudish
Copy link
Author

jkudish commented Mar 20, 2016

Is the .ico supposed to be a certain size? Mine is 256x256 but wondering if that's the issue?

@jkudish
Copy link
Author

jkudish commented Mar 21, 2016

Seems to be related to the VM setup. I tried again on a native windows machine from a friend and the app compiled without any problems there. Will try to figure out what about the VM is being problematic.

@jkudish jkudish closed this as completed Mar 21, 2016
@develar develar reopened this Mar 21, 2016
@develar
Copy link
Member

develar commented Mar 21, 2016

Reopened — I am going to check some option values on electron-builder side because Squirrel.window produces unclear ugly error messages.

Yes, icon must be at least 256 size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants