我如何使用 Electron Builder 在 ubuntu 中设置图标应用程序
how i can set icon application in ubuntu with elctron builder
* 版本: ^10.6.1
* 目标:linux
我是 ubuntu 用户 & 我无法为我的应用程序设置图标。
这是错误:
No native production dependencies
Packaging for linux x64 using electron 1.4.1 to dist/linux-unpacked
⚠️ Application icon is not set, default Electron icon will be used
Building AppImage for arch x64
这是我的构建部分 package.jason:
"build": {
"appId": "985654798458542",
"mac": {
"category": "crm"
},
"win": {
"iconUrl": "logo.png"
},
"linux": {
"iconUrl": "logo.png"
}
来自electron-builder quick-setup:
Create a directory build in the root of the project and save a
background.png (macOS DMG background), icon.icns (macOS app icon) and
icon.ico (Windows app icon) into it.
The Linux icon set will be generated automatically based on the macOS
icns file (or you can put them into the build/icons directory if you
want to specify them yourself. The filename must contain the size
(e.g. 32x32.png) of the icon).
您必须通过 mac 选项指定您的图标,即使在您的情况下它不是构建目标。
* 版本: ^10.6.1
* 目标:linux
我是 ubuntu 用户 & 我无法为我的应用程序设置图标。 这是错误:
No native production dependencies
Packaging for linux x64 using electron 1.4.1 to dist/linux-unpacked
⚠️ Application icon is not set, default Electron icon will be used
Building AppImage for arch x64
这是我的构建部分 package.jason:
"build": {
"appId": "985654798458542",
"mac": {
"category": "crm"
},
"win": {
"iconUrl": "logo.png"
},
"linux": {
"iconUrl": "logo.png"
}
来自electron-builder quick-setup:
Create a directory build in the root of the project and save a background.png (macOS DMG background), icon.icns (macOS app icon) and icon.ico (Windows app icon) into it.
The Linux icon set will be generated automatically based on the macOS icns file (or you can put them into the build/icons directory if you want to specify them yourself. The filename must contain the size (e.g. 32x32.png) of the icon).
您必须通过 mac 选项指定您的图标,即使在您的情况下它不是构建目标。