package: productName and bumps
This commit is contained in:
1 parent
28060e0551
commit
23a9348619
3 files changed
+14
-12
No files matched your search
+4
-4
@@ -1,10 +1,10 @@
|
||||
import os from 'os'
|
||||
import { join } from 'path'
|
||||
import { app, BrowserWindow, shell } from 'electron'
|
||||
import { release } from 'os'
|
||||
import { join } from 'path'
|
||||
import './samples/electron-store'
|
||||
|
||||
const isWin7 = os.release().startsWith('6.1')
|
||||
if (isWin7) app.disableHardwareAcceleration()
|
||||
if (release().startsWith('6.1')) app.disableHardwareAcceleration()
|
||||
if (process.platform === 'win32') app.setAppUserModelId(app.getName())
|
||||
|
||||
if (!app.requestSingleInstanceLock()) {
|
||||
app.quit()
|
||||
|
||||
Reference in new issue
Block a user