我想了解如何根据环境动态传递电子生成器的配置? 我找不到任何令人满意的文档。 目前,我可以通过package.json静态配置使用它:
***
{
"name": "Test",
"version": "1.0.0",
"author": "Test Author",
"description": "Test",
"build": {
"appId": "Test",
"extraFiles": {
"from": "./build",
"to": "./dist"
},
"win": {
"icon" : "build/images/icon.ico",
"target": ["nsis"]
},
},
}
***