fix: 新增文件助手目录

This commit is contained in:
Gsh
2025-08-18 23:07:34 +08:00
parent 2cf6326764
commit 6de3b722ed
5 changed files with 87 additions and 143 deletions

View File

@@ -0,0 +1,26 @@
const { app, BrowserWindow } = require('electron/main')
const createWindow = () => {
const win = new BrowserWindow({
width: 800,
height: 600
})
win.loadFile('index.html')
}
app.whenReady().then(() => {
createWindow()
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow()
}
})
})
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
}
})