diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..247ee18 Binary files /dev/null and b/icon.png differ diff --git a/index.js b/index.js new file mode 100644 index 0000000..691c4c2 --- /dev/null +++ b/index.js @@ -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); \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..51772f2 --- /dev/null +++ b/package.json @@ -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" + } +}