Skip to content

Commit 8f456e7

Browse files
- fix executable path output
1 parent 186ada3 commit 8f456e7

File tree

6 files changed

+18
-6
lines changed

6 files changed

+18
-6
lines changed

dist/index.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -40899,6 +40899,13 @@ async function ExportXcodeArchive(projectRef) {
4089940899
await execWithXcBeautify(exportArgs);
4090040900
projectRef.exportPath = exportPath;
4090140901
core.info(`Exported: ${exportPath}`);
40902+
const globPath = `${exportPath}/**/*.ipa\n${exportPath}/**/*.app`;
40903+
const globber = await glob.create(globPath);
40904+
const files = await globber.glob();
40905+
if (files.length === 0) {
40906+
throw new Error(`No IPA or APP file found in the export path.\n${globPath}`);
40907+
}
40908+
core.setOutput('executable', files[0]);
4090240909
return projectRef;
4090340910
}
4090440911
async function determinePlatform(projectPath, scheme) {
@@ -43008,7 +43015,6 @@ const main = async () => {
4300843015
let projectRef = await (0, xcode_1.GetProjectDetails)();
4300943016
projectRef.credential = credential;
4301043017
projectRef = await (0, xcode_1.ArchiveXcodeProject)(projectRef);
43011-
core.setOutput('executable', projectRef.archivePath);
4301243018
projectRef = await (0, xcode_1.ExportXcodeArchive)(projectRef);
4301343019
core.setOutput('output-directory', projectRef.exportPath);
4301443020
}

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unity-xcode-builder",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A GitHub Action to build and archive Unity exported xcode projects.",
55
"author": "RageAgainstThePixel",
66
"license": "MIT",

src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const main = async () => {
2626
let projectRef = await GetProjectDetails();
2727
projectRef.credential = credential;
2828
projectRef = await ArchiveXcodeProject(projectRef);
29-
core.setOutput('executable', projectRef.archivePath);
3029
projectRef = await ExportXcodeArchive(projectRef);
3130
core.setOutput('output-directory', projectRef.exportPath);
3231
} else {

src/xcode.ts

+7
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ async function ExportXcodeArchive(projectRef: XcodeProject): Promise<XcodeProjec
173173
await execWithXcBeautify(exportArgs);
174174
projectRef.exportPath = exportPath;
175175
core.info(`Exported: ${exportPath}`);
176+
const globPath = `${exportPath}/**/*.ipa\n${exportPath}/**/*.app`;
177+
const globber = await glob.create(globPath);
178+
const files = await globber.glob();
179+
if (files.length === 0) {
180+
throw new Error(`No IPA or APP file found in the export path.\n${globPath}`);
181+
}
182+
core.setOutput('executable', files[0]);
176183
return projectRef;
177184
}
178185

0 commit comments

Comments
 (0)