apache / apache/cordova-electron

Unable to set the custom icons

Open
#251 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
135
Forks
60
Avg merge
1d 6h
Merged PRs (30d)
5

Description

# Bug Report

## Problem

### What is expected to happen?
I want to customize the app icon, avoiding to use the default electron one.

### What does actually happen?
Building the app, it says "default Electron icon is used reason=application icon is not set" and it uses the default icons and not the ones I've specified in config.xml file.

## Information

### Command or Code

Config.xml file:
```xml






```
Command:
`cordova build electron`
Note: using cordova run electron --nobuild works, but it's not what i want :)

Build.json:
```json
{
"electron": {
"release": {
"windows": {
"package": [
"msi",
"appx"
],
"arch": [
"x64"
],
"signing": {
"release": {
"certificateFile": "",
"certificatePassword": ""
}
}
}
},
"debug": {
"windows": {
"package": [
"msi","zip"
],
"arch": [
"x64"
],
"signing": {
"release": {
"certificateFile": "",
"certificatePassword": ""
}
}
}
}
}
}
```

### Environment, Platform, Device, Version information

I'm on windows 11.
Cordova: 11.1.0
Cordova-electron: 3.1.0

## Checklist

- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with cordova build electron using the supplied config.xml, build.json, and Windows environment. Trace how the build command reads the app and installer icon preferences; done means the generated app and installers use the configured icons instead of the default Electron icon.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, javascript
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.