运行使用先打包成win32程序,在win7上运行exe启动。
electron app脚本中写下:
win.on('show',()=>{
let feedurl=`http://10.8.3.31:1337/update/windows_32/stable`;
autoUpdater.setFeedURL(feedurl);
autoUpdater.checkForUpdates(); // <------ 调用这里出错,没有进行网络连接就出错了
});
其中1337是连接的我本机的ip,跑的electron官方说明里的electron-release-servermaster 服务,也配置并测试了api正常
查看stackoverflow上给出的解释是这个app没有被安装 https://github.com/electron/electron/issues/4535 但,实际上我用inno setup 打包并安装之后安装也是同样的问题。
哪位给解释一下怎么回事