Remove duplicated icon
Per https://www.electron.build/icons, a single 512x512 icon.png placed in the buildResources directory (default `build`) is enough to generate icons for all three - macOS, Windows and Linux.
This commit is contained in:
parent
379a5f8e79
commit
42679bc9da
4 changed files with 1 additions and 8 deletions
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 1 KiB |
|
@ -12,7 +12,6 @@ linux:
|
|||
arch: [x64, arm64]
|
||||
- target: pacman
|
||||
arch: [x64, arm64]
|
||||
icon: ./resources/icon.icns
|
||||
category: Photography
|
||||
mac:
|
||||
target:
|
||||
|
|
|
@ -20,21 +20,15 @@ const execAsync = util.promisify(require("child_process").exec);
|
|||
* This window will show the HTML served from {@link rendererURL}.
|
||||
*/
|
||||
export const createWindow = async () => {
|
||||
const appImgPath = isDev
|
||||
? "../build/window-icon.png"
|
||||
: path.join(process.resourcesPath, "window-icon.png");
|
||||
const appIcon = nativeImage.createFromPath(appImgPath);
|
||||
|
||||
// Create the main window. This'll show our web content.
|
||||
const mainWindow = new BrowserWindow({
|
||||
webPreferences: {
|
||||
preload: path.join(app.getAppPath(), "preload.js"),
|
||||
},
|
||||
icon: appIcon,
|
||||
// The color to show in the window until the web content gets loaded.
|
||||
// See: https://www.electronjs.org/docs/latest/api/browser-window#setting-the-backgroundcolor-property
|
||||
backgroundColor: "black",
|
||||
// We'll show conditionally depending on `wasAutoLaunched` later
|
||||
// We'll show it conditionally depending on `wasAutoLaunched` later.
|
||||
show: false,
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue