问题描述
这是电子桌面应用程序。使用此软件包创建Windows安装程序时,我收到以下错误消息。
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创建Windows安装程序
gulp create-windows-installer
使用gulpfile D:\bala\electron\poc\ \installer\app4\gulpfile.js
在4.49秒后开始'create-windows-installer'...
'create-windows-installer'错误
Using gulpfile D:\bala\electron\poc\installer\app4\gulpfile.jsStarting 'create-windows-installer'...'create-windows-installer' errored after 4.49 s
错误:命令失败: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
Error: Command failed: D:\bala\electron\poc\installer\app4\node_modules\electron-windows-installer\vendor\nuget.exepack C:\Users\xxxxxx\AppData\Local\Temp\squirrel-installer-116318-5484-1nobhq\app.nuspec
-BasePath D:\bala\lectr
on\poc\installer\app4\dist\app-win32-ia32 -OutputDirectory C:\Users\ xxxxxx\AppDa
ta\Local\Temp\squirrel-installer-116318-5484-1nobhq
-BasePath D:\bala\electron\poc\installer\app4\dist\app-win32-ia32 -OutputDirectory C:\Users\xxxxxx\AppData\Local\Temp\squirrel-installer-116318-5484-1nobhq
-NoDefault排除
无效的URI:无法确定URI的格式。
-NoDefaultExcludesInvalid 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)
我正在使用Windows 7(32位)。有什么建议吗?谢谢。
I am using Windows 7, 32bit. Any suggestion? Thanks.
推荐答案
我找到了解决方案,方法是在带有图标路径值的gulp tasker中添加 iconUrl属性。即 。
注意:图标图像必须是外部路径,例如 http或 https。
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".
这篇关于Electron Atom APP:无效的URI:无法确定URI的格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!