Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
shichen85 committed Oct 6, 2024
1 parent cf05bd7 commit 12ab95a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34416,7 +34416,7 @@ class Gms2Compile {
const originalBaseName = this.baseName;
//Convert originalBaseName to replace all space and hyphen with underscore
const baseName = originalBaseName.replace(/[-\s]/g, "_");
return (0,external_path_.join)(buildTempDir, baseName, `baseName.xcodeproj`);
return (0,external_path_.join)(buildTempDir, baseName, `${baseName}.xcodeproj`);
}
androidGradleOutputDir() {
const buildCacheDir = this.localSettings["machine.General Settings.Paths.IDE.AssetCacheFolder"];
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "setup-igor",
"author": "Shi Chen",
"version": "1.0.1",
"version": "1.0.2",
"main": "./build/index.js",
"type": "module",
"files": [
Expand Down
14 changes: 7 additions & 7 deletions src/lib/igor-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -101,15 +101,15 @@ 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"];

this.runtimePath = //Infer the runtime path
join(
this.localSettings["runtimeDir"] as string,
`runtime-${this.targetRuntime}`
`runtime-${this.targetRuntime}`,
);
}

Expand Down Expand Up @@ -193,7 +193,7 @@ export class Gms2Compile {

private _generateWorkerCommands(
platform: ModuleAliases,
generatePublishBuild = false
generatePublishBuild = false,
) {
const worker = this._convertToIgorWorker(platform);

Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 12ab95a

Please sign in to comment.