From 0a7aaa7a0f9c156528621d03eaf97eaba5f71a67 Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Sun, 11 Oct 2020 00:32:22 -0500 Subject: [PATCH] Separate environment and runtime options Having the dropdowns in one spot and the options for each of them in another spot is just weird and unnecessary --- index.html | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/index.html b/index.html index 4bb27c9..a56a246 100644 --- a/index.html +++ b/index.html @@ -150,39 +150,25 @@ along with this program. If not, see .
-

Environment

+

Runtime

-
- -
-
- -
-
+

TurboWarp options

TurboWarp currently does not support any options.

-
+

forkphorus options

@@ -245,17 +231,31 @@ along with this program. If not, see .
-
+

Environment

+ +
+ +
+ +

Plain HTML Options

No options.

-
+

Zip Options

No options.

-
+

NW.js Options

@@ -362,7 +362,7 @@ along with this program. If not, see . }; const getRuntime = async (projectType) => { - switch (O.environment.runtime) { + switch (O.runtime.name) { case 'turbowarp': return new Packager.runtimes.TurboWarp(); case 'forkphorus': return new Packager.runtimes.Forkphorus({ playerOptions: { @@ -382,7 +382,7 @@ along with this program. If not, see . .then((r) => r.blob()); const getEnvironment = async () => { - switch (O.environment.target) { + switch (O.environment.name) { case 'html': return new Packager.environments.HTML(); case 'zip': return new Packager.environments.Zip(); case 'nwjs-win64': @@ -390,7 +390,7 @@ along with this program. If not, see . return new Packager.environments.NWjs({ icon: O.nwjs.icon || await getDefaultIcon(), manifest: O.nwjs.manifest, - platform: O.environment.target.substr('nwjs-'.length), + platform: O.environment.name.substr('nwjs-'.length), }); } throw new Error('unknown environment');