This commit is contained in:
ertherod 2018-05-08 19:29:41 +02:00
parent 079ec7561e
commit e88551f962
7 changed files with 70 additions and 17 deletions

View File

@ -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);

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

27
v0.1.1/index.js Normal file
View File

@ -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);

BIN
v0.1.1beta/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

28
v0.1.1beta/index.js Normal file
View 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
v0.1.1beta/package.json Normal file
View 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"
}
}