release: v2.8.7

This commit is contained in:
hunlongyu
2022-07-13 16:44:48 +08:00
parent 5e37ef32fd
commit e7c7367ea8
4 changed files with 24 additions and 23 deletions

View File

@@ -25,6 +25,7 @@ function createWindow () {
resizable: true,
webPreferences: {
webSecurity: false,
enableRemoteModule: true,
nodeIntegration: true,
contextIsolation: false,
allowRunningInsecureContent: false
@@ -67,7 +68,7 @@ function createWindow () {
if (process.platform === 'darwin') {
app.dock.show()
}
if (process.platform === 'Linux') {
if (process.platform === 'linux') {
app.disableHardwareAcceleration()
app.commandLine.appendSwitch('--no-sandbox') // linux 关闭沙盒模式
}