Dateien nach "/" hochladen
This commit is contained in:
parent
ae4f827747
commit
9a47869bd5
4 changed files with 65 additions and 0 deletions
BIN
icon.ico
Normal file
BIN
icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 164 KiB |
27
index.js
Normal file
27
index.js
Normal file
|
@ -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()
|
||||||
|
}
|
||||||
|
})
|
2
license.md
Normal file
2
license.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
## wiki.hackmi.ch
|
||||||
|
See for more Details hackmi.ch / git.hackmi.ch
|
36
package.json
Normal file
36
package.json
Normal file
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue