Electron Atom APP : Invalid URI: The format of the URI could not be determined

亡梦爱人 提交于 2020-01-05 17:45:28

问题


This is electron desktop app. While creating windows installer using this package https://www.npmjs.com/package/electron-windows-installer via gulp, i am getting following error message.

gulp create-windows-installer

Using gulpfile D:\bala\electron\poc\installer\app4\gulpfile.js Starting 'create-windows-installer'... 'create-windows-installer' errored after 4.49 s

Error: Command failed: D:\bala\electron\poc\installer\app4\node_modul es\electron-windows-installer\vendor\nuget.exe pack C:\Users\xxxxxx\AppData\Loca l\Temp\squirrel-installer-116318-5484-1nobhq\app.nuspec

-BasePath D:\bala\electr on\poc\installer\app4\dist\app-win32-ia32 -OutputDirectory C:\Users\xxxxxx\AppDa ta\Local\Temp\squirrel-installer-116318-5484-1nobhq

-NoDefaultExcludes Invalid URI: The format of the URI could not be determined.

at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

I am using Windows 7, 32bit. Any suggestion? Thanks.


回答1:


I found the solution by adding "iconUrl" attribute in gulp tasker with icon path value. i.e, "https://www.domain.com/image.ico". NOTE: icon image must be external path like "http" or "https".



来源:https://stackoverflow.com/questions/36696430/electron-atom-app-invalid-uri-the-format-of-the-uri-could-not-be-determined

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!