You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
想修改打包的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") }, },
The text was updated successfully, but these errors were encountered:
想修改打包的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") }, },
The text was updated successfully, but these errors were encountered: