Skip to content

Commit b984cc9

Browse files
- fix macos hub update
1 parent bafa1a6 commit b984cc9

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

.github/workflows/validate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
contents: read
3636
strategy:
3737
matrix: ${{ fromJSON(needs.setup.outputs.jobs) }}
38+
fail-fast: false
3839
secrets: inherit
3940
uses: ./.github/workflows/build.yml
4041
with:

dist/install-unityhub-macos.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ if [ -z "${volumes}" ]; then
2424
fi
2525
echo "Mounted volumes:"
2626
echo "${volumes}"
27-
volume=$(echo "${volumes}" | grep -o "/Volumes/Unity Hub.*-${cpuArch}" | head -n1)
27+
# can be "/Volumes/Unity Hub 3.13.1-arm64" or "/Volumes/Unity Hub 3.13.1"
28+
volume=$(echo "${volumes}" | grep -o "/Volumes/Unity Hub.*" | head -n1)
2829
if [ -z "${volume}" ]; then
29-
echo "Failed to mount ${downloadPath}"
30+
hdiutil unmount "${volumes}" -quiet
31+
echo "Failed to find Unity Hub volume in ${volumes}"
3032
exit 1
3133
fi
3234
appPath=$(find "${volume}" -name "*.app" | head -n1)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unity-setup",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "A GitHub action for setting up the Unity Game Engine for CI/CD workflows.",
55
"author": "Buildalon",
66
"license": "MIT",

src/install-unityhub-macos.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ if [ -z "${volumes}" ]; then
2424
fi
2525
echo "Mounted volumes:"
2626
echo "${volumes}"
27-
volume=$(echo "${volumes}" | grep -o "/Volumes/Unity Hub.*-${cpuArch}" | head -n1)
27+
# can be "/Volumes/Unity Hub 3.13.1-arm64" or "/Volumes/Unity Hub 3.13.1"
28+
volume=$(echo "${volumes}" | grep -o "/Volumes/Unity Hub.*" | head -n1)
2829
if [ -z "${volume}" ]; then
29-
echo "Failed to mount ${downloadPath}"
30+
hdiutil unmount "${volumes}" -quiet
31+
echo "Failed to find Unity Hub volume in ${volumes}"
3032
exit 1
3133
fi
3234
appPath=$(find "${volume}" -name "*.app" | head -n1)

0 commit comments

Comments
 (0)