diff --git a/dist/index.js b/dist/index.js index e5af84e..dcbbc8f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -34624,7 +34624,8 @@ async function run() { core.setOutput("out-dir", outDir); } catch (err) { - core.setFailed(err.message); + core.error(err); + core.setFailed(err); } } // eslint-disable-next-line @typescript-eslint/no-floating-promises diff --git a/package-lock.json b/package-lock.json index 62e0b39..06d3f75 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "setup-igor", - "version": "1.0.3", + "version": "1.0.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "setup-igor", - "version": "1.0.3", + "version": "1.0.4", "license": "MIT", "dependencies": { "@actions/core": "^1.10.1", diff --git a/package.json b/package.json index 4b68811..ac9a701 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "setup-igor", "author": "Shi Chen", - "version": "1.0.3", + "version": "1.0.4", "main": "./build/index.js", "type": "module", "files": [ diff --git a/src/index.ts b/src/index.ts index 4c75a74..1df22b7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -37,7 +37,7 @@ export async function run() { if (save_logs) { const logFile = path.resolve( - `${compiler.name}_${platform}_${config}_build.log` + `${compiler.name}_${platform}_${config}_build.log`, ); fs.removeSync(logFile); const writeStream = fs.createWriteStream(logFile); diff --git a/src/lib/igor-build.ts b/src/lib/igor-build.ts index c420909..e1eaff7 100644 --- a/src/lib/igor-build.ts +++ b/src/lib/igor-build.ts @@ -89,7 +89,7 @@ export class Gms2Compile { } this.baseName = basename(this.projectDir, extname(this.projectDir)).replace( " ", - "_" + "_", ); this.exportPlatform = options.exportPlatform; this.destinationDir = options.destinationDir || resolve("out"); @@ -101,7 +101,7 @@ export class Gms2Compile { this.yyc = options.yyc; this.localSettings = fs.readJSONSync( - join(this.userDir, "local_settings.json") + join(this.userDir, "local_settings.json"), ); this.targetRuntime = this.localSettings["targetRuntime"]; @@ -109,7 +109,7 @@ export class Gms2Compile { this.runtimePath = //Infer the runtime path join( this.localSettings["runtimeDir"] as string, - `runtime-${this.targetRuntime}` + `runtime-${this.targetRuntime}`, ); } @@ -193,7 +193,7 @@ export class Gms2Compile { private _generateWorkerCommands( platform: ModuleAliases, - generatePublishBuild = false + generatePublishBuild = false, ) { const worker = this._convertToIgorWorker(platform); @@ -237,7 +237,7 @@ export class Gms2Compile { baseCommand = join( this.runtimePath, `bin/igor/windows/${arch}`, - "Igor.exe" + "Igor.exe", ); } else if (osPlatform() == "darwin") { baseCommand = join(this.runtimePath, `bin/igor/osx/${arch}`, "Igor"); @@ -265,12 +265,12 @@ export class Gms2Compile { `/runtime=${buildOptimization}`, "/v", "/ic", - "/cr" + "/cr", ); if (fs.existsSync(legacyIgor)) { args.push( - `/ssdk=${this.localSettings["machine.Platform Settings.Steam.steamsdk_path"]}` + `/ssdk=${this.localSettings["machine.Platform Settings.Steam.steamsdk_path"]}`, ); } const igorCommand = this._generateWorkerCommands(this.exportPlatform);