From e2ae97d6ccdbad50df01a70be3e76fd7cce4faee Mon Sep 17 00:00:00 2001 From: Lewis Sobotkiewicz Date: Thu, 5 Sep 2019 12:48:35 -0700 Subject: [PATCH] Don't use the hxelectron library when building ApplicationMain. That sets the 'nodejs' compiler flag, which emits improper JavaScript when running in the Electron window. --- templates/electron/hxml/debug.hxml | 3 +-- templates/electron/hxml/final.hxml | 3 +-- templates/electron/hxml/release.hxml | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/templates/electron/hxml/debug.hxml b/templates/electron/hxml/debug.hxml index 348e30d89..a52f9f877 100644 --- a/templates/electron/hxml/debug.hxml +++ b/templates/electron/hxml/debug.hxml @@ -3,7 +3,6 @@ --next -js ::OUTPUT_FILE:: -cp ::OUTPUT_DIR::/haxe --lib electron -main ApplicationMain ::HAXE_FLAGS:: -D html5 @@ -19,4 +18,4 @@ -D html5 -D html --debug \ No newline at end of file +-debug diff --git a/templates/electron/hxml/final.hxml b/templates/electron/hxml/final.hxml index ca8677b1b..fd0555284 100644 --- a/templates/electron/hxml/final.hxml +++ b/templates/electron/hxml/final.hxml @@ -3,7 +3,6 @@ --next -js ::OUTPUT_FILE:: -cp ::OUTPUT_DIR::/haxe --lib electron -main ApplicationMain ::HAXE_FLAGS:: -D html5 @@ -20,4 +19,4 @@ -D html -D final -D js-flatten --dce full \ No newline at end of file +-dce full diff --git a/templates/electron/hxml/release.hxml b/templates/electron/hxml/release.hxml index 169a51b49..ed219e174 100644 --- a/templates/electron/hxml/release.hxml +++ b/templates/electron/hxml/release.hxml @@ -3,7 +3,6 @@ --next -js ::OUTPUT_FILE:: -cp ::OUTPUT_DIR::/haxe --lib electron -main ApplicationMain ::HAXE_FLAGS:: -D html5 @@ -17,4 +16,4 @@ -dce full -D html5 --D html \ No newline at end of file +-D html