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');