diff --git a/icon.ico b/icon.ico new file mode 100644 index 0000000..18c61d7 Binary files /dev/null and b/icon.ico differ diff --git a/index.js b/index.js new file mode 100644 index 0000000..bf6a253 --- /dev/null +++ b/index.js @@ -0,0 +1,27 @@ +const { app, BrowserWindow } = require('electron/main') +const path = require('node:path') + +function createWindow () { + const win = new BrowserWindow({ + width: 1280, + height: 720 + }) + + win.loadURL("https://wiki.hackmi.ch") +} + +app.whenReady().then(() => { + createWindow() + + app.on('activate', () => { + if (BrowserWindow.getAllWindows().length === 0) { + createWindow() + } + }) +}) + +app.on('window-all-closed', () => { + if (process.platform !== 'darwin') { + app.quit() + } +}) \ No newline at end of file diff --git a/license.md b/license.md new file mode 100644 index 0000000..81d8d23 --- /dev/null +++ b/license.md @@ -0,0 +1,2 @@ +## wiki.hackmi.ch +See for more Details hackmi.ch / git.hackmi.ch \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..7c548a7 --- /dev/null +++ b/package.json @@ -0,0 +1,36 @@ +{ + "name": "wiki.hackmi.ch", + "version": "1.0.1", + "main": "index.js", + "scripts": { + "start": "electron .", + "build": "electron-builder" + }, + "build": { + "appId": "wiki.hackmi.ch", + "win": { + "target": [ + "nsis" + ], + "icon": "icon.ico" + } + }, + "nsis": { + "oneClick": false, + "installerIcon": "icon.ico", + "uninstallerIcon": "icon.ico", + "uninstallDisplayName": "wiki.hackmi.ch Uninstall", + "license": "license.md", + "allowToChangeInstallionDirectory": true + }, + "author": "hackmi.ch", + "license": "ISC", + "description": "Just the webapp for wiki.hackmi.ch", + "devDependencies": { + "@electron/fuses": "^1.8.0", + "electron": "^30.0.6" + }, + "dependencies": { + "electron-build": "^0.0.3" + } +}