commit
d683ae0c66
3 changed files with 7 additions and 6 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
const ipcMain = require('electron').ipcMain;
|
||||
const nativeImage = require('electron').nativeImage;
|
||||
const Menu = require('menu');
|
||||
const Menu = require('electron').Menu;
|
||||
|
||||
var template;
|
||||
|
||||
|
@ -186,7 +186,7 @@
|
|||
Menu.setApplicationMenu(menu);
|
||||
|
||||
mainWindow = new BrowserWindow({width: 1280, height: 800, 'min-width': 1024, 'min-height': 600, 'autoHideMenuBar': true, 'web-security': true, 'java': false, 'accept-first-mouse': true, defaultEncoding: 'UTF-8', 'icon':'file://'+__dirname + '/assets/img/favicon.png'});
|
||||
mainWindow.loadUrl('file://' + __dirname + '/electron-start.html');
|
||||
mainWindow.loadURL('file://' + __dirname + '/electron-start.html');
|
||||
mainWindow.focus();
|
||||
|
||||
// Listen for badge changes
|
||||
|
|
|
@ -7,6 +7,7 @@ onload = function() {
|
|||
const ipc= require('electron').ipcRenderer;
|
||||
const remote = require('electron').remote;
|
||||
const nativeImage = require('electron').nativeImage;
|
||||
const shell = require('electron').shell;
|
||||
|
||||
var webview = document.getElementById("glowingbear");
|
||||
|
||||
|
@ -14,7 +15,7 @@ onload = function() {
|
|||
console.log("webview: " + e.message);
|
||||
}
|
||||
var handlenewwindow = function(e) {
|
||||
require('shell').openExternal(e.url);
|
||||
shell.openExternal(e.url);
|
||||
}
|
||||
var handletitleset = function(e) {
|
||||
document.title = e.title;
|
||||
|
|
|
@ -18,10 +18,10 @@ uselocal: copylocal
|
|||
|
||||
# build the electron app for various platforms
|
||||
build-electron-windows: uselocal
|
||||
electron-packager ${ELECTRON_COMMON} --platform=win32 --arch=ia32 --version=0.37.6 --icon=assets/img/favicon.ico --asar=true
|
||||
electron-packager ${ELECTRON_COMMON} --platform=win32 --arch=ia32 --version=1.0.0 --icon=assets/img/favicon.ico --asar=true
|
||||
|
||||
build-electron-darwin: uselocal
|
||||
electron-packager ${ELECTRON_COMMON} --platform=darwin --arch=x64 --version=0.37.6 --icon=assets/img/glowing-bear.icns
|
||||
electron-packager ${ELECTRON_COMMON} --platform=darwin --arch=x64 --version=1.0.0 --icon=assets/img/glowing-bear.icns
|
||||
|
||||
build-electron-linux: uselocal
|
||||
electron-packager ${ELECTRON_COMMON} --platform=linux --arch=x64 --version=0.37.6 --icon=assets/img/favicon.ico
|
||||
electron-packager ${ELECTRON_COMMON} --platform=linux --arch=x64 --version=1.0.0 --icon=assets/img/favicon.ico
|
||||
|
|
Loading…
Reference in a new issue