electron-builder is not bundling the python files

后端 未结 2 1764
误落风尘
误落风尘 2021-01-14 19:50

This is my directory structure where renderer.js is included by index.html . The python scripts visitor.py and download.py

2条回答
  •  自闭症患者
    2021-01-14 20:24

    You need to specify them as follows:

        "extraFiles": [
            "from":"source path",
            "to":"your destination"
        ]
    

    if you want to put those files by creating directory then use extraResources

        "extraResources": [
            "from":"source path",
            "to":"some directory name"
        ]
    

    for more info refer here

提交回复
热议问题