Skip to content

修改安装的应用图标报错 #179

@zhouganglong

Description

@zhouganglong

想修改打包的setup安装包的图标,我在forge.config.js配置setupIcon的时候报错An unhandled rejection has occurred inside Forge: Error: Failed with exit code: 1 Output: Fatal error: Unable to load file at ChildProcess.<anonymous> (C:\Users\bluewhalex\Desktop\electron\my-app\node_modules\electron-winstaller\lib\spawn-promise.js:48:24) at ChildProcess.emit (node:events:517:28) at ChildProcess.emit (node:domain:489:12) at maybeClose (node:internal/child_process:1098:16) at ChildProcess._handle.onexit (node:internal/child_process:303:5)

配置是这样的
{ name: "@electron-forge/maker-squirrel", config: { author: "天安企服.exe", description: "天安企服桌面端", // An URL to an ICO file to use as the application icon (displayed in Control Panel > Programs and Features). iconUrl: path.join(__dirname, "build/icons/icon.ico"), // The ICO file to use as the icon for the generated Setup.exe setupIcon: path.join(__dirname, "build/icons/icon.ico") }, },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions