Player app.

This commit is contained in:
Lubos Lenco 2016-04-14 17:14:33 +02:00
parent 3e2c61db66
commit 757191e3a7
2 changed files with 33 additions and 0 deletions

27
tools/player/app/main.js Normal file
View file

@ -0,0 +1,27 @@
'use strict';
const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
let mainWindow;
function createWindow () {
mainWindow = new BrowserWindow({width: 800, height: 600});
mainWindow.loadURL('file://' + __dirname + '/../../../../../build/html5/index.html');
mainWindow.on('closed', function() {
mainWindow = null;
});
}
app.on('ready', createWindow);
app.on('window-all-closed', function () {
//if (process.platform !== 'darwin') {
app.quit();
//}
});
app.on('activate', function () {
if (mainWindow === null) {
createWindow();
}
});

View file

@ -0,0 +1,6 @@
{
"name": "electron-player",
"version": "1.0.0",
"description": "A minimal Electron application",
"main": "main.js"
}