From b17bc6100b4107fa130b3bd46010c1212615c25a Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Tue, 19 Oct 2021 17:57:36 -0700 Subject: [PATCH] electron: sets -D electron to allow differentiation between plain html5 and electron, if needed --- templates/electron/hxml/debug.hxml | 2 ++ templates/electron/hxml/final.hxml | 2 ++ templates/electron/hxml/release.hxml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/templates/electron/hxml/debug.hxml b/templates/electron/hxml/debug.hxml index 509c5e9e2..3bedb711b 100644 --- a/templates/electron/hxml/debug.hxml +++ b/templates/electron/hxml/debug.hxml @@ -6,6 +6,7 @@ -lib hxnodejs -main ApplicationMain ::HAXE_FLAGS:: +-D electron -D html5 -D html -debug @@ -17,6 +18,7 @@ -lib hxnodejs -dce full +-D electron -D html5 -D html -debug diff --git a/templates/electron/hxml/final.hxml b/templates/electron/hxml/final.hxml index c2dd2a3b4..b2b5cebad 100644 --- a/templates/electron/hxml/final.hxml +++ b/templates/electron/hxml/final.hxml @@ -6,6 +6,7 @@ -lib hxnodejs -main ApplicationMain ::HAXE_FLAGS:: +-D electron -D html5 -D html @@ -16,6 +17,7 @@ -lib hxnodejs -dce full +-D electron -D html5 -D html -D final diff --git a/templates/electron/hxml/release.hxml b/templates/electron/hxml/release.hxml index 4728915d6..de2e79414 100644 --- a/templates/electron/hxml/release.hxml +++ b/templates/electron/hxml/release.hxml @@ -6,6 +6,7 @@ -lib hxnodejs -main ApplicationMain ::HAXE_FLAGS:: +-D electron -D html5 -D html @@ -16,5 +17,6 @@ -lib hxnodejs -dce full +-D electron -D html5 -D html