commit 4e8f7b234ee8345f7d6e1abcf5c126e3e92e22f7 Author: ertherod Date: Tue May 8 16:58:59 2018 +0200 ajout de la version 0.1.0 Première version de Comunic desktop diff --git a/README.md b/README.md new file mode 100644 index 0000000..af47532 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +Vous devez avoir installer node.js sur votre ordinateur. + +Il faut executer la commande : +npm i --save electron +dans un terminal pour pouvoir l'utiliser, +puis ouvrir un terminal ou une console dans le dossier et taper: +electron index.js \ No newline at end of file diff --git a/v0.1.0/icon.png b/v0.1.0/icon.png new file mode 100644 index 0000000..247ee18 Binary files /dev/null and b/v0.1.0/icon.png differ diff --git a/v0.1.0/index.js b/v0.1.0/index.js new file mode 100644 index 0000000..d5757b0 --- /dev/null +++ b/v0.1.0/index.js @@ -0,0 +1,17 @@ +const electron = require('electron'); +const app = electron.app; +const BrowserWindow = electron.BrowserWindow; + +let mainWindow + +function createWindow() { + mainWindow = new BrowserWindow({icon:'icon.png'}); + mainWindow.setIco + mainWindow.loadURL('http://beta.communiquons.org/login'); + + mainWindow.on('closed', () =>{ + mainWindow = null; + }); +} + +app.on('ready', createWindow); \ No newline at end of file diff --git a/v0.1.0/package.json b/v0.1.0/package.json new file mode 100644 index 0000000..45e87a6 --- /dev/null +++ b/v0.1.0/package.json @@ -0,0 +1,14 @@ +{ + "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": { + "electron": "^2.0.0" + } +}