忘れないために
{
"name": "app",
"version": "1.0.0",
"description": "my first desktop app",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "electron-builder build --win portable"
},
"build":{
"files":[
"./index.js",
"./index.html",
"./test.js",
"./node_modules/**/*",
"./package.json"
]
},
"author": "",
"license": "ISC",
"devDependencies": {
"electron-builder": "^23.3.3"
}
}
の中の
"build":{
"files":[
"./index.js",
"./index.html",
"./test.js",
"./node_modules/**/*",
"./package.json"
]
},
ビルドするファイルを指定しないとダメ
忘れるとファイルが読み込めない。