2016-12-29 6 views
0

* Версия:^10.6.1как я могу установить приложение значок в убунту с elctron строитель

* Target: линукс

я убунту пользователь & и я мог не установлен значок для моего приложения. это ошибка:

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" 

} 

ответ

0

Из 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-options, даже если это не цель сборки в вашем случае.