电子建设者无法打开输出文件

时间:2015-10-04 18:18:43

标签: node.js electron builder electron-builder

我曾尝试使用Electron Builder构建Windows安装程序。但是,我只能构建一次,但是当我安装它时会抛出错误:

error

我试图再次构建它,但这次它会抛出错误:

makensis: 
Output: "\Users\hoangha\HaLink\service-oriented-architecture-assignment\desktopApp\~Desktop\\SOA Library Setup.exe"

makensis: Can't open output file
Error - aborting creation process

Finished makensis with code 1
/usr/local/lib/node_modules/electron-builder/cli.js:30
    throw error;
          ^
Error: makensis failed
    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/electron-builder/lib/win.js:81:26)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1015:16)
    at Socket.<anonymous> (child_process.js:1183:11)
    at Socket.emit (events.js:107:17)
    at Pipe.close (net.js:485:12)

这是我的config.json文件:

{
  "osx" : {
    "title": "SOA Library",
    "background": "assets/osx/installer.png",
    "icon": "assets/osx/mount.icns",
    "icon-size": 80,
    "contents": [
      { "x": 438, "y": 344, "type": "link", "path": "/Applications" },
      { "x": 192, "y": 344, "type": "file" }
    ]
  },
  "win" : {
    "title" : "SOA Library",
    "icon" : "icon.ico"
  }
}

有人知道如何解决这个问题吗?我做错了。

0 个答案:

没有答案