electron.manifest.json is not copying files or icons

  Kiến thức lập trình

I have the following electron.manifest.json file

    {
  "executable": "AutoHARP3HarpFantasy",
  "splashscreen": {
    "HarpFantasy": null,
    "imageFile": ""
  },
  "win": {
    "icon": "C:/Users/brdav/AutoHARP3/Source/Repos/AutoHARP3HarpFantasy/wwwroot/res/HarpIcon.ico",
    "target": [ "portable" ]
  },
  "name": "AutoHARP3HarpFantasy",
  "author": "",
  "singleInstance": false,
  "environment": "Production",
  "build": {
    "appId": "com.AutoHARP3HarpFantasy.app",
    "productName": "AutoHARP3HarpFantasy",
    "copyright": "Copyright � 2023",
    "buildVersion": "1.0.0",
    "compression": "maximum",
    "icon": "C:/Users/brdav/AutoHARP3/Source/Repos/AutoHARP3HarpFantasy/wwwroot/res/HarpIcon.ico",
    "directories": {
      "output": "./"
    },
    "extraResources": [
      {
        "from": "./bin",
        "to": "bin",
        "filter": [ "**/*" ]
      }
    ],
    "files": [
      {
        "from": "./ElectronHostHook/node_modules",
        "to": "ElectronHostHook/node_modules",
        "filter": [ "**/*" ]
      },
      "**/*"
    ],
    "extraFiles": [
      {
        "from": "C:/Users/brdav/AutoHARP3/Source/Repos/AutoHARP3HarpFantasy/Data/HarpDatabases",
        "to": "resources/bin/Data/HarpDatabases",
        "filter": [ "**/*" ]
      },
      {
        "from": "C:/Users/brdav/AutoHARP3/Source/Repos/AutoHARP3HarpFantasy/PreferencesForPublishing.xml",
        "to": "resources/bin/Preferences.xml"
      }
    ]

  }
}

I am trying to copy an .ico file, one folder, and one .xml file to the destination of where this electron build will place the “compiled” folder with my executable. I even resorted to using an absolute path to the actual file on my computer. This will still not result in the correct files being placed in the output folder. The xml file is still not correct and the icon does not appear in my application.

I guess the million dollar question is, am I missing something? I looked at examples and this should be following the examples, but perhaps I am missing something obvious.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT