Skip to content

Commit

Permalink
Merge branch 'main' into test/macos-15
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson authored Oct 8, 2024
2 parents 8187e68 + bcf3ee1 commit f3c4f82
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
8 changes: 7 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40911,6 +40911,13 @@ async function ExportXcodeArchive(projectRef) {
}
await execWithXcBeautify(exportArgs);
projectRef.exportPath = exportPath;
const globPath = `${exportPath}/**/*.ipa\n${exportPath}/**/*.app`;
const globber = await glob.create(globPath);
const files = await globber.glob();
if (files.length === 0) {
throw new Error(`No IPA or APP file found in the export path.\n${globPath}`);
}
core.setOutput('executable', files[0]);
core.info(`Exported: ${exportPath}`);
return projectRef;
}
Expand Down Expand Up @@ -43021,7 +43028,6 @@ const main = async () => {
let projectRef = await (0, xcode_1.GetProjectDetails)();
projectRef.credential = credential;
projectRef = await (0, xcode_1.ArchiveXcodeProject)(projectRef);
core.setOutput('executable', projectRef.archivePath);
projectRef = await (0, xcode_1.ExportXcodeArchive)(projectRef);
core.setOutput('output-directory', projectRef.exportPath);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

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,6 +1,6 @@
{
"name": "unity-xcode-builder",
"version": "1.0.0",
"version": "1.0.1",
"description": "A GitHub Action to build and archive Unity exported xcode projects.",
"author": "buildalon",
"license": "MIT",
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const main = async () => {
let projectRef = await GetProjectDetails();
projectRef.credential = credential;
projectRef = await ArchiveXcodeProject(projectRef);
core.setOutput('executable', projectRef.archivePath);
projectRef = await ExportXcodeArchive(projectRef);
core.setOutput('output-directory', projectRef.exportPath);
} else {
Expand Down
7 changes: 7 additions & 0 deletions src/xcode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@ async function ExportXcodeArchive(projectRef: XcodeProject): Promise<XcodeProjec
}
await execWithXcBeautify(exportArgs);
projectRef.exportPath = exportPath;
const globPath = `${exportPath}/**/*.ipa\n${exportPath}/**/*.app`;
const globber = await glob.create(globPath);
const files = await globber.glob();
if (files.length === 0) {
throw new Error(`No IPA or APP file found in the export path.\n${globPath}`);
}
core.setOutput('executable', files[0]);
core.info(`Exported: ${exportPath}`);
return projectRef;
}
Expand Down

0 comments on commit f3c4f82

Please sign in to comment.