diff --git a/v0.1.0/index.js b/v0.1.0/index.js deleted file mode 100644 index d188e29..0000000 --- a/v0.1.0/index.js +++ /dev/null @@ -1,17 +0,0 @@ -const electron = require('electron'); -const app = electron.app; -const BrowserWindow = electron.BrowserWindow; - -let mainWindow - -function createWindow() { - mainWindow = new BrowserWindow({icon:'resources/app/icon.png'}); - mainWindow.setIco - mainWindow.loadURL('http://communiquons.org'); - - mainWindow.on('closed', () =>{ - mainWindow = null; - }); -} - -app.on('ready', createWindow); \ No newline at end of file diff --git a/v0.1.0/icon.png b/v0.1.1/icon.png similarity index 100% rename from v0.1.0/icon.png rename to v0.1.1/icon.png diff --git a/v0.1.1/index.js b/v0.1.1/index.js new file mode 100644 index 0000000..1cd9bc1 --- /dev/null +++ b/v0.1.1/index.js @@ -0,0 +1,27 @@ +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.loadURL('https://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/v0.1.0/package.json b/v0.1.1/package.json similarity index 100% rename from v0.1.0/package.json rename to v0.1.1/package.json diff --git a/v0.1.1beta/icon.png b/v0.1.1beta/icon.png new file mode 100644 index 0000000..247ee18 Binary files /dev/null and b/v0.1.1beta/icon.png differ diff --git a/v0.1.1beta/index.js b/v0.1.1beta/index.js new file mode 100644 index 0000000..691c4c2 --- /dev/null +++ b/v0.1.1beta/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/v0.1.1beta/package.json b/v0.1.1beta/package.json new file mode 100644 index 0000000..51772f2 --- /dev/null +++ b/v0.1.1beta/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" + } +}