mirror of
https://github.com/pierre42100/ComunicDesktop
synced 2024-11-23 12:39:22 +00:00
Add version 0.1.1b
This commit is contained in:
parent
699fe8599a
commit
01ced676a6
28
index.js
Normal file
28
index.js
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
const electron = require('electron');
|
||||||
|
const app = electron.app;
|
||||||
|
const BrowserWindow = electron.BrowserWindow;
|
||||||
|
|
||||||
|
let mainWindow
|
||||||
|
|
||||||
|
function createWindow() {
|
||||||
|
mainWindow = new BrowserWindow({
|
||||||
|
icon:'resources/app/icon.png',
|
||||||
|
webPreferences: {
|
||||||
|
nodeIntegration: false,
|
||||||
|
preload: './preload.js'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
mainWindow.setIco
|
||||||
|
mainWindow.loadURL('https://beta.communiquons.org/');
|
||||||
|
|
||||||
|
mainWindow.on('closed', () =>{
|
||||||
|
mainWindow = null;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
app.on('window-all-closed', () =>{
|
||||||
|
if(process.platform !== 'darwin'){
|
||||||
|
app.quit();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
app.on('ready', createWindow);
|
15
package.json
Normal file
15
package.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"name": "communic-desktop",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"description": "A client-desktop for communiquons.org",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "electron ."
|
||||||
|
},
|
||||||
|
"author": "Team dev communic",
|
||||||
|
"license": "GPL-3.0",
|
||||||
|
"dependencies": {},
|
||||||
|
"devDependencies": {
|
||||||
|
"electron": "^2.0.0"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user