Skip to content

Commit baf15c0

Browse files
committed
fix: update appId and icon settings for Linux platform in electron-builder and window configuration
1 parent da781b9 commit baf15c0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

electron-builder.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
appId: com.electron.app
1+
appId: com.linuxdevil.meetingvideo-transrecorder
22
productName: meetingvideo-transrecorder
33
directories:
44
buildResources: build
5+
icon: resources/icon.png
56
files:
67
- '!**/.vscode/*'
78
- '!src/*'
@@ -28,6 +29,7 @@ asarUnpack:
2829
- resources/**
2930
win:
3031
executableName: meetingvideo-transrecorder
32+
icon: resources/icon.png
3133
extraResources:
3234
- from: 'ffmpeg-bin-windows'
3335
to: 'ffmpeg-bin-windows'
@@ -38,6 +40,7 @@ nsis:
3840
uninstallDisplayName: ${productName}
3941
createDesktopShortcut: always
4042
mac:
43+
icon: resources/icon.png
4144
identity: null
4245
entitlementsInherit: build/entitlements.mac.plist
4346
extendInfo:
@@ -49,6 +52,7 @@ mac:
4952
dmg:
5053
artifactName: ${name}-${version}.${ext}
5154
linux:
55+
icon: resources/icon.png
5256
target:
5357
- AppImage
5458
- snap

src/main/window.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function createWindow(): BrowserWindow {
1212
height: 950,
1313
show: false,
1414
autoHideMenuBar: true,
15-
...(process.platform === 'linux' ? { icon } : {}),
15+
icon: icon,
1616
webPreferences: {
1717
preload: join(__dirname, '../preload/preload.js'),
1818
sandbox: false,
@@ -51,7 +51,7 @@ export function createWindow(): BrowserWindow {
5151
*/
5252
export function initializeApp(): void {
5353
// Set app user model id for windows
54-
electronApp.setAppUserModelId('com.electron')
54+
electronApp.setAppUserModelId('com.linuxdevil.meetingvideo-transrecorder')
5555

5656
// Default open or close DevTools by F12 in development
5757
// and ignore CommandOrControl + R in production.

0 commit comments

Comments
 (0)