initial files upload
This commit is contained in:
parent
9bf2bd37ae
commit
22b9e0e55d
BIN
assets/icon.ico
Normal file
BIN
assets/icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
26
index.js
Normal file
26
index.js
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
const {app, BrowserWindow, Menu} = require('electron');
|
||||||
|
|
||||||
|
Menu.setApplicationMenu(false); // remove menu line
|
||||||
|
|
||||||
|
let win;
|
||||||
|
|
||||||
|
createWindow = () => {
|
||||||
|
win = new BrowserWindow({
|
||||||
|
width: 1280,
|
||||||
|
height: 720,
|
||||||
|
icon: __dirname + '/assets/icon.ico'
|
||||||
|
});
|
||||||
|
|
||||||
|
win.loadURL('https://google.com/'); // url to open
|
||||||
|
|
||||||
|
// win.webContents.openDevTools(); // open development tools
|
||||||
|
|
||||||
|
win.on('closed', () => {
|
||||||
|
win = null;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
app.on('ready', createWindow);
|
||||||
|
app.on('window-all-closed', () => {
|
||||||
|
app.quit();
|
||||||
|
});
|
2172
package-lock.json
generated
Normal file
2172
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
32
package.json
Normal file
32
package.json
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"name": "electron-desktop",
|
||||||
|
"version": "0.0.1-alpha",
|
||||||
|
"description": "Electron Desktop Application",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"start": "electron .",
|
||||||
|
"build": "electron-builder"
|
||||||
|
},
|
||||||
|
"author": "Mestima",
|
||||||
|
"license": "MIT",
|
||||||
|
"build": {
|
||||||
|
"appId": "com.electron-desktop.app",
|
||||||
|
"productName": "Electron Desktop",
|
||||||
|
"win": {
|
||||||
|
"target": "NSIS",
|
||||||
|
"icon": "assets/icon.ico"
|
||||||
|
},
|
||||||
|
"directories": {
|
||||||
|
"output": "build"
|
||||||
|
},
|
||||||
|
"nsis": {
|
||||||
|
"allowToChangeInstallationDirectory": true,
|
||||||
|
"oneClick": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dependencies": {},
|
||||||
|
"devDependencies": {
|
||||||
|
"electron": "^9.1.0",
|
||||||
|
"electron-builder": "^22.7.0"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user