如何在 Electron 中为 OSX 打包自定义图标
How to package custom icon in Electron for OSX
如何将自定义应用程序图标添加到 OSX
的 Electron 应用程序?我已经使用 electron packager 和 asar flag
打包了应用程序,并且可以查看包内容以查看 atom.icns
图标文件 - 虽然用我的 .icns
文件替换它不会更新主应用程序图标.
这里有一个 linux 重点问题,但它没有提供太多 OSX
信息:
这是我的打包命令:
electron-packager . HttpWizard --platform=all --arch=all --version=0.36.0 --asar=true
尝试使用图标选项:
--icon=/path/to/icon.icns
图标
the icon file to use as the icon for the app. Note: Format
depends on platform.
如何将自定义应用程序图标添加到 OSX
的 Electron 应用程序?我已经使用 electron packager 和 asar flag
打包了应用程序,并且可以查看包内容以查看 atom.icns
图标文件 - 虽然用我的 .icns
文件替换它不会更新主应用程序图标.
这里有一个 linux 重点问题,但它没有提供太多 OSX
信息:
这是我的打包命令:
electron-packager . HttpWizard --platform=all --arch=all --version=0.36.0 --asar=true
尝试使用图标选项:
--icon=/path/to/icon.icns
图标
the icon file to use as the icon for the app. Note: Format depends on platform.