Invalid URI: The URI scheme is not valid.
See original GitHub issueWhat version of electron-installer-windows
are you using?
^0.2.0
What version of node
and npm
are you using?
2 info using npm@3.10.5
3 info using node@v4.4.7
What operating system are you using?
Mac OS Version 10.10.5
Can you compile the example app successfully?
Yes
If not, paste here the output of the following commands:
$ git clone https://github.com/unindented/electron-installer-windows.git
$ cd electron-installer-windows/example
$ DEBUG='electron-installer-windows' npm run build
What did you do? Please include the configuration you are using for electron-installer-windows
.
I have a root package.json file with scripts that contains:
"exe64": "electron-packager ./build 'GrooveAnimator' --platform=win32 --arch=x64 --out=dist/ --ignore=\"(dist|node_modules/electron.*)\" --icon=resources/groove-animator-win.png",
"set64": "electron-installer-windows --src dist/GrooveAnimator-win32-x64/ --dest dist/installers/x64/ --config config.json",
"packwin": "npm run exe64 && npm run set64"
Also have a config.json file with the following:
{
"icon": "http://arcadebuilder.com/images/groove-animator-win.png",
"iconUrl": "http://arcadebuilder.com/images/groove-animator-win.png",
"tags": [
"Utility",
"SVG Animation"
],
"options": {
"iconUrl": "http://arcadebuilder.com/images/groove-animator-win.png"
}
}
The app is set up like this…
app-
build-
contents (this is the dev testing environment and what the packaged apps are built from)
package.json (contains only name, version, description, main, author and dependencies)
dist- (destination folder for compile app)
src-
contents (this is the directory I work in and have listeners set up to copy to the build folder)
package.json (contains the commands above)
resource-
app-icon.png
What did you expect to happen? The application to be packaged
What actually happened?
I’ve attached the npm-debug.log file as well as a log file I copied my terminal output to. The error is:
Invalid URI: The URI scheme is not valid.
I tried several different ways of including the iconUrl. First, I tried just using the relative path like your example:
resources/groove-animator-win.png
I tried just using the relative path for icon:
and placed the png on a server accessible from the Internet and using that URL for the iconUrl. I tried leaving out the icon in the exe64 process and tried both the remote icon url as well as the relative path. I continue to get this error no matter what I do. I didn’t want to jump over the using electron-builder if the same issue is going to crop up. Really has me puzzled.
Issue Analytics
- State:
- Created 7 years ago
- Comments:27
Top GitHub Comments
Thank you so much for hanging in there and finding the issue. I’m now a serious fan of unindented!
Compare your application to the example. It looks like your problem is related to your specific setup, not the library itself. I’ll close the issue so that this doesn’t go on forever.