amend hxml templates
Rename Electron.hx to ElectronSetup.hx to make it more clear what it does
This commit is contained in:
committed by
Joshua Granick
parent
8553739479
commit
4aeb59f7f1
@@ -1,7 +1,7 @@
|
||||
import electron.main.App;
|
||||
import electron.main.BrowserWindow;
|
||||
|
||||
class Electron {
|
||||
class ElectronSetup {
|
||||
|
||||
public static var window:BrowserWindow;
|
||||
|
||||
@@ -45,7 +45,7 @@ class Electron {
|
||||
var frame:Bool = window.borderless == false;
|
||||
|
||||
electron.main.App.on( 'ready', function(e) {
|
||||
Electron.window = new BrowserWindow( {
|
||||
ElectronSetup.window = new BrowserWindow( {
|
||||
fullscreen: window.fullscreen,
|
||||
frame:frame,
|
||||
resizable: window.resizable,
|
||||
@@ -54,14 +54,14 @@ class Electron {
|
||||
height:height
|
||||
} );
|
||||
|
||||
Electron.window.on( closed, function() {
|
||||
ElectronSetup.window.on( closed, function() {
|
||||
if( js.Node.process.platform != 'darwin' )
|
||||
electron.main.App.quit();
|
||||
});
|
||||
|
||||
Electron.window.loadURL( 'file://' + js.Node.__dirname + '/index.html' );
|
||||
ElectronSetup.window.loadURL( 'file://' + js.Node.__dirname + '/index.html' );
|
||||
#if debug
|
||||
Electron.window.webContents.openDevTools();
|
||||
ElectronSetup.window.webContents.openDevTools();
|
||||
#end
|
||||
});
|
||||
}
|
||||
@@ -1,15 +1,17 @@
|
||||
-cp ::OUTPUT_DIR::/haxe
|
||||
-lib electron
|
||||
|
||||
--each
|
||||
|
||||
--next
|
||||
-js ::OUTPUT_FILE::
|
||||
-cp ::OUTPUT_DIR::/haxe
|
||||
-lib electron
|
||||
-main ApplicationMain ::HAXE_FLAGS::
|
||||
|
||||
--next
|
||||
-js ::OUTPUT_DIR::/bin/ElectronSetup.js
|
||||
-main Electron
|
||||
-cp ::OUTPUT_DIR::/haxe
|
||||
-lib electron
|
||||
-main ElectronSetup
|
||||
-dce full
|
||||
|
||||
-D html5
|
||||
-D html
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
-cp ::OUTPUT_DIR::/haxe
|
||||
-lib electron
|
||||
|
||||
--each
|
||||
|
||||
--next
|
||||
-js ::OUTPUT_FILE::
|
||||
-cp ::OUTPUT_DIR::/haxe
|
||||
-lib electron
|
||||
-main ApplicationMain ::HAXE_FLAGS::
|
||||
|
||||
--next
|
||||
-js ::OUTPUT_DIR::/bin/ElectronSetup.js
|
||||
-main Electron
|
||||
-cp ::OUTPUT_DIR::/haxe
|
||||
-lib electron
|
||||
-main ElectronSetup
|
||||
-dce full
|
||||
|
||||
-D html5
|
||||
-D html
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
-cp ::OUTPUT_DIR::/haxe
|
||||
-lib electron
|
||||
|
||||
--each
|
||||
|
||||
--next
|
||||
-js ::OUTPUT_FILE::
|
||||
-cp ::OUTPUT_DIR::/haxe
|
||||
-lib electron
|
||||
-main ApplicationMain ::HAXE_FLAGS::
|
||||
|
||||
--next
|
||||
-js ::OUTPUT_DIR::/bin/ElectronSetup.js
|
||||
-main Electron
|
||||
-cp ::OUTPUT_DIR::/haxe
|
||||
-lib electron
|
||||
-main ElectronSetup
|
||||
-dce full
|
||||
|
||||
-D html5
|
||||
-D html
|
||||
Reference in New Issue
Block a user