Skip to content

Commit d9287e7

Browse files
unity-setup@v1.0.14 (#30)
- fixed unity hub updates on self-hosted runners - fixed unity hub installation/updates on self-hosted mac runners - attempt to fix editor by removing any invalid installs before attempting to re-install
1 parent a4403dc commit d9287e7

15 files changed

+2131
-2007
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Update Release Tags
22
on:
33
push:
4-
tags: '*'
4+
tags: ['*']
55
workflow_dispatch:
66
jobs:
77
update-release-tags:
@@ -13,6 +13,3 @@ jobs:
1313
with:
1414
fetch-depth: 0
1515
- uses: RageAgainstThePixel/update-action-release-tags@v1
16-
with:
17-
update-major: true
18-
update-minor: true

.github/workflows/validate.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ on:
33
schedule:
44
- cron: '0 0 * * 0' # Run every Sunday at midnight
55
push:
6-
branches:
7-
- 'main'
6+
branches: ['main']
87
pull_request:
9-
branches:
10-
- '*'
8+
branches: ['*']
119
# Allows you to run this workflow manually from the Actions tab
1210
workflow_dispatch:
1311
concurrency:
1412
group: ${{ github.workflow }}-${{ github.ref }}
1513
cancel-in-progress: true
1614
jobs:
1715
validate:
16+
permissions:
17+
contents: read
1818
env:
1919
UNITY_EDITORS: '' # set by the unity-setup action
2020
UNITY_HUB_PATH: '' # set by the unity-setup action

dist/index.js

Lines changed: 1928 additions & 1875 deletions
Large diffs are not rendered by default.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/install-unityhub-macos.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@
22
set -e
33
echo "::group::Installing Unity Hub..."
44
baseUrl="https://public-cdn.cloud.unity3d.com/hub/prod"
5-
url="$baseUrl/UnityHubSetup.dmg"
6-
downloadPath="$RUNNER_TEMP/UnityHubSetup.dmg"
5+
cpuArch=$(uname -m)
6+
if [ "$cpuArch" == "arm64" ]; then
7+
cpuArch="arm64"
8+
else
9+
cpuArch="x64"
10+
fi
11+
fileName="UnityHubSetup"
12+
url="$baseUrl/$fileName-$cpuArch.dmg"
13+
downloadPath="$RUNNER_TEMP/$fileName-$cpuArch.dmg"
714
echo "Downloading Unity Hub from $url to $downloadPath..."
815
wget -qO "$downloadPath" "$url"
916
if [ ! -f "$downloadPath" ]; then

dist/licenses.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -442,19 +442,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
442442
SOFTWARE.
443443

444444

445-
uuid
446-
MIT
447-
The MIT License (MIT)
448-
449-
Copyright (c) 2010-2020 Robert Kieffer and other contributors
450-
451-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
452-
453-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
454-
455-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
456-
457-
458445
wrappy
459446
ISC
460447
The ISC License

dist/update-unityhub-linux.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -e
3+
wget -qO - https://hub.unity3d.com/linux/keys/public | gpg --dearmor | sudo tee /usr/share/keyrings/Unity_Technologies_ApS.gpg >/dev/null
4+
sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/Unity_Technologies_ApS.gpg] https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list'
5+
sudo apt-get update --allow-releaseinfo-change
6+
sudo apt-get install -y --no-install-recommends --only-upgrade unityhub

0 commit comments

Comments
 (0)