fgv2.0 平台 electron 打包桌面应用
whychw
2026-03-21 29b048064ae92d5d8d9737477f4375f724deeb08
package.json
@@ -17,6 +17,7 @@
    "asar": true,
    "files": [
      "!dependent/**",
      "!dependent_linux/**",
      "getConfig.js",
      "config.json",
      "main.js",
@@ -40,11 +41,9 @@
      "shortcutName": "electronFg"
    },
    "linux": {
      "icon": "build/icons/512x512.png",
      "icon": "./build/icons",
      "artifactName": "${productName}-${version}-linux.${ext}",
      "target": {
        "target": "dir"
      }
      "target": ["dir", "tar.gz"]
    },
    "extraResources": [
      {
@@ -52,8 +51,8 @@
        "to": "../"
      },
      {
        "from": "./dependent/elevate.exe",
        "to": "../resources/elevate.exe"
        "from": "./build/",
        "to": "build"
      }
    ]
  },