first commit

This commit is contained in:
supernijia
2026-03-01 00:07:25 +08:00
commit a79426ada9
9 changed files with 1680 additions and 0 deletions

6
preload.js Normal file
View File

@@ -0,0 +1,6 @@
const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('electronAPI', {
windowControl: (action) => ipcRenderer.send('window-controls', action),
selectDirectory: () => ipcRenderer.invoke('select-directory')
});