Add Electron & Setup Github Actions

This commit is contained in:
2026-05-17 19:44:15 +02:00
parent 746a83de6e
commit 7e2c27d165
80 changed files with 3653 additions and 2 deletions
+28
View File
@@ -0,0 +1,28 @@
const { app, BrowserWindow } = require('electron');
const path = require('path');
const createWindow = () => {
const mainWindow = new BrowserWindow({
width: 1280,
height: 800,
icon: path.join(__dirname, 'SRC/IMG/IMP_Gen_logo-removebg-preview.png'),
webPreferences: {
nodeIntegration: false,
contextIsolation: true
}
});
mainWindow.loadURL('https://opm.nhkyllian.fr');
};
app.whenReady().then(() => {
createWindow();
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) createWindow();
});
});
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') app.quit();
});