feat: add app version

This commit is contained in:
kangfenmao
2024-07-05 11:29:56 +08:00
parent c7332636b2
commit 43ceb4bcf3
5 changed files with 70 additions and 8 deletions
+4 -2
View File
@@ -76,8 +76,10 @@ app.whenReady().then(() => {
optimizer.watchWindowShortcuts(window)
})
// IPC test
ipcMain.on('ping', () => console.log('pong'))
// IPC
ipcMain.handle('get-app-info', () => ({
version: app.getVersion()
}))
createWindow()