带有电子封装器的电子封装 - 构建输出中缺少文件

时间:2016-09-15 17:48:58

标签: electron electron-builder

这是我的构建命令。当前文件夹有另外的文件,如settings.config,readme.md这些文件不包含在构建输出中。

"build-win": "electron-packager . AppName --overwrite --out=dist --ignore='^/dist$' --prune --asar --platform=win32 --arch=all --version=0.36.0 --icon=img/favicon.ico"

这是package.json

{
"name": "ElectronDesktopTest", 
"productName": "ElectronDesktopTest",
"version": "1.0.0",
"description": "Electron Desktop Test",
"main": "main.js",
"electronVersion": "0.36.0",
"scripts": {
  "start": "electron main.js",
  "build-win": "electron-packager . ElectronDesktopTest --overwrite --out=dist --ignore='^/dist$' --prune --asar --platform=win32 --arch=all --version=0.36.0 --icon=img/favicon.ico"
  },
"author": "Jyo",
"devDependencies": {
    "electron-prebuilt": "^0.36.0",
    "electron-packager": "^5.2.0"
  },

"dependencies": {
   "electron-reload": "^0.2.0",
   "fs-extra": "^0.26.5",
   "gray-matter": "^2.0.2",
   "jade": "^1.11.0",
   "jquery": "^2.2.0",
   "lunr": "^0.6.0",
   "showdown": "^1.3.0",
   "underscore": "^1.8.3"
  }
}

1 个答案:

答案 0 :(得分:-1)

如果问题标记为electron-builder,您可以尝试使用electron-builder;)