From 10701ad4448aee9adcb7e4a9951c8e9a6115811e Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Fri, 5 Jan 2024 09:30:20 -0800 Subject: [PATCH] fix unescaped paths spaces in main class were causing compiler failures --- package-lock.json | 4 ++-- package.json | 2 +- src/ASConfigC.as | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 89e65de..b9c93a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "asconfigc", - "version": "1.8.0", + "version": "1.8.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "asconfigc", - "version": "1.8.0", + "version": "1.8.1", "license": "Apache-2.0", "dependencies": { "adm-zip": "^0.4.16", diff --git a/package.json b/package.json index b93a9cf..b25efa6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "asconfigc", - "version": "1.8.0", + "version": "1.8.1", "description": "Builds an ActionScript & MXML project configured with asconfig.json, from simple compilation to packaging Adobe AIR apps.", "author": "Josh Tynjala", "repository": "BowlerHatLLC/asconfigc", diff --git a/src/ASConfigC.as b/src/ASConfigC.as index d09a869..7a0aa2b 100644 --- a/src/ASConfigC.as +++ b/src/ASConfigC.as @@ -744,7 +744,7 @@ package this._allModuleCompilerArgs.push(moduleCompilerArgs); } if (moduleCount > 0) { - this._compilerArgs.push("--" + CompilerOptions.LINK_REPORT + "+=" + linkReportPath); + this._compilerArgs.push("--" + CompilerOptions.LINK_REPORT + "+=" + escapePath(linkReportPath)); } } if(TopLevelFields.WORKERS in configData) @@ -797,7 +797,7 @@ package for (i = 0; i < fileCount; i++) { file = files[i]; - this._compilerArgs.push(file); + this._compilerArgs.push(escapePath(file)); } } } @@ -817,7 +817,7 @@ package //terminate previous options and start default options this._compilerArgs.push("--"); } - this._compilerArgs.push(this._mainFile); + this._compilerArgs.push(escapePath(this._mainFile)); } if(TopLevelFields.ANIMATE_OPTIONS in configData) {