1.yarn create electron-app xxx(创建xxx electron-app项目,过程中安装依赖)
2.yarn start (启动)
3.yarn make(打包至out)
此方法快速搭建有非常大可能依赖没安完整~
"dependencies": {
"electron-squirrel-startup": "^1.0.0",
> "electron-compile": "^6.4.3"
},
"devDependencies": {
> "electron-prebuilt-compile": "2.0.4",
> "electron-forge": "^5.2.2",
"@electron-forge/cli": "^6.0.0-beta.57",
"@electron-forge/maker-deb": "^6.0.0-beta.57",
"@electron-forge/maker-rpm": "^6.0.0-beta.57",
"@electron-forge/maker-squirrel": "^6.0.0-beta.57",
"@electron-forge/maker-zip": "^6.0.0-beta.57" }