Add Waveterm Icon to Linux (#120)

* add icon for Linux

The app icon previously did not show up in Linux. This change fixes that
by providing the wave-logo-dark.png to the electron Browser Window.

* set the icon to only use the direct path on linux

The previous change was only required on linux and not on mac. This
ensures the old behavior will continue to be done on mac while using the
new behavior on linux.
This commit is contained in:
Sylvie Crowe 2023-12-04 22:47:01 -08:00 committed by GitHub
parent a3187a1235
commit 6791d874e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,6 +250,7 @@ function createMainWindow(clientData) {
minWidth: 800,
minHeight: 600,
transparent: true,
icon: (unamePlatform == "linux") ? "public/logos/wave-logo-dark.png" : undefined,
webPreferences: {
preload: path.join(getAppBasePath(), DistDir, "preload.js"),
},