adjustments for linux build

This commit is contained in:
Daniel Haller 2024-05-03 23:15:38 +02:00
parent 6ca3070450
commit e81e288e84
2 changed files with 8 additions and 13 deletions

View File

@ -37,19 +37,9 @@ const options = {
nsis: { nsis: {
deleteAppDataOnUninstall: true deleteAppDataOnUninstall: true
}, },
mac: {
category: 'public.app-category.entertainment',
hardenedRuntime: false,
gatekeeperAssess: false,
target: [
{
target: 'default',
arch: ['x64', 'arm64']
}
]
},
linux: { linux: {
maintainer: 'Stratum', maintainer: 'Stratum',
category: 'AudioVideo',
desktop: { desktop: {
StartupNotify: 'false', StartupNotify: 'false',
Encoding: 'UTF-8', Encoding: 'UTF-8',

View File

@ -38,10 +38,13 @@ function createWindow() {
resizable: false, resizable: false,
fullscreen: false, fullscreen: false,
maximizable: false, maximizable: false,
frame: false,
vibrancy: 'fullscreen-ui', vibrancy: 'fullscreen-ui',
// Not working when unfocusing the window somehow? // Not working when unfocusing the window somehow?
backgroundMaterial: 'acrylic', backgroundMaterial: 'acrylic',
show: false show: false,
// For Linux
autoHideMenuBar: true
}) })
// Show window after loading page // Show window after loading page
@ -195,7 +198,9 @@ ipcMain.handle(
maximizable: false, maximizable: false,
vibrancy: 'fullscreen-ui', vibrancy: 'fullscreen-ui',
backgroundMaterial: 'acrylic', backgroundMaterial: 'acrylic',
show: false show: false,
// For Linux
autoHideMenuBar: true
}) })
newWindow.once('ready-to-show', () => { newWindow.once('ready-to-show', () => {