Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhouganglong opened this issue Jun 5, 2024 · 1 comment
Open

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

zhouganglong opened this issue Jun 5, 2024 · 1 comment

Comments

@zhouganglong
Copy link

想修改打包的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") }, },

@an78mK89fy
Copy link

直接用inno之类的做安装包吧,直接package后用inno之类的工具。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants