Skip to content
This repository was archived by the owner on Aug 11, 2024. It is now read-only.

Commit 0fa9188

Browse files
@xrtk/unity-setup@v6 (#12)
1 parent 91194db commit 0fa9188

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

dist/unity-install.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if ( (-not $global:PSVersionTable.Platform) -or ($global:PSVersionTable.Platform
2929
$editorFileEx = "\Editor\Unity.exe"
3030

3131
if ([string]::IsNullOrEmpty($modulesList)) {
32-
$modules = @('windows-il2cpp', 'universal-windows-platform', 'lumin', 'webgl', 'android', 'ios')
32+
$modules = @('windows-il2cpp', 'universal-windows-platform', 'android', 'ios')
3333
}
3434

3535
#"Unity Hub.exe" -- --headless help
@@ -46,7 +46,7 @@ elseif ( $global:PSVersionTable.OS.Contains("Darwin") ) {
4646
$editorFileEx = "/Unity.app/Contents/MacOS/Unity"
4747

4848
if ([string]::IsNullOrEmpty($modulesList)) {
49-
$modules = @('mac-il2cpp', 'ios', 'lumin', 'webgl', 'android')
49+
$modules = @('mac-il2cpp', 'ios', 'android')
5050
}
5151

5252
# /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless help
@@ -63,14 +63,14 @@ elseif ( $global:PSVersionTable.OS.Contains("Linux") ) {
6363
$editorFileEx = "/Editor/Unity"
6464

6565
if ([string]::IsNullOrEmpty($modulesList)) {
66-
$modules = @('linux-il2cpp', 'webgl', 'android', 'ios')
66+
$modules = @('linux-il2cpp', 'android', 'ios')
6767
}
6868

6969
# /UnityHub.AppImage --headless help
7070
# xvfb-run --auto-servernum "$HOME/Unity Hub/UnityHub.AppImage" --headless help
7171
function Invoke-UnityHub {
7272
$argsList = $args.Split(" ")
73-
xvfb-run --auto-servernum "$hubPath" --headless $argsList
73+
xvfb-run --auto-servernum "$hubPath" --disable-gpu-sandbox --headless $argsList
7474
}
7575
}
7676

@@ -118,7 +118,7 @@ if ( -not (Test-Path -Path "$hubPath") ) {
118118
elseif ($global:PSVersionTable.OS.Contains("Linux")) {
119119
mkdir -pv "$HOME/Unity Hub" "$HOME/.config/Unity Hub" "$editorRootPath"
120120
sudo apt-get update
121-
sudo apt-get install -y libgconf-2-4 libglu1 libasound2 libgtk2.0-0 libgtk-3-0 libnss3 zenity xvfb
121+
sudo apt-get install -y libgconf-2-4 libglu1 libasound2 libgtk2.0-0 libgtk-3-0 libnss3 zenity xvfb libssl1.1 libfuse2
122122

123123
#https://www.linuxdeveloper.space/install-unity-linux/
124124
$wc.DownloadFile("$baseUrl/UnityHub.AppImage", "$hubPath")

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": "5.0.0",
3+
"version": "6.0.0",
44
"description": "An atomic GitHub action to download and install the Unity Editor for runners.",
55
"main": "src/index.js",
66
"scripts": {

src/unity-install.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if ( (-not $global:PSVersionTable.Platform) -or ($global:PSVersionTable.Platform
2929
$editorFileEx = "\Editor\Unity.exe"
3030

3131
if ([string]::IsNullOrEmpty($modulesList)) {
32-
$modules = @('windows-il2cpp', 'universal-windows-platform', 'lumin', 'webgl', 'android', 'ios')
32+
$modules = @('windows-il2cpp', 'universal-windows-platform', 'android', 'ios')
3333
}
3434

3535
#"Unity Hub.exe" -- --headless help
@@ -46,7 +46,7 @@ elseif ( $global:PSVersionTable.OS.Contains("Darwin") ) {
4646
$editorFileEx = "/Unity.app/Contents/MacOS/Unity"
4747

4848
if ([string]::IsNullOrEmpty($modulesList)) {
49-
$modules = @('mac-il2cpp', 'ios', 'lumin', 'webgl', 'android')
49+
$modules = @('mac-il2cpp', 'ios', 'android')
5050
}
5151

5252
# /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless help
@@ -63,14 +63,14 @@ elseif ( $global:PSVersionTable.OS.Contains("Linux") ) {
6363
$editorFileEx = "/Editor/Unity"
6464

6565
if ([string]::IsNullOrEmpty($modulesList)) {
66-
$modules = @('linux-il2cpp', 'webgl', 'android', 'ios')
66+
$modules = @('linux-il2cpp', 'android', 'ios')
6767
}
6868

6969
# /UnityHub.AppImage --headless help
7070
# xvfb-run --auto-servernum "$HOME/Unity Hub/UnityHub.AppImage" --headless help
7171
function Invoke-UnityHub {
7272
$argsList = $args.Split(" ")
73-
xvfb-run --auto-servernum "$hubPath" --headless $argsList
73+
xvfb-run --auto-servernum "$hubPath" --disable-gpu-sandbox --headless $argsList
7474
}
7575
}
7676

@@ -118,7 +118,7 @@ if ( -not (Test-Path -Path "$hubPath") ) {
118118
elseif ($global:PSVersionTable.OS.Contains("Linux")) {
119119
mkdir -pv "$HOME/Unity Hub" "$HOME/.config/Unity Hub" "$editorRootPath"
120120
sudo apt-get update
121-
sudo apt-get install -y libgconf-2-4 libglu1 libasound2 libgtk2.0-0 libgtk-3-0 libnss3 zenity xvfb
121+
sudo apt-get install -y libgconf-2-4 libglu1 libasound2 libgtk2.0-0 libgtk-3-0 libnss3 zenity xvfb libssl1.1 libfuse2
122122

123123
#https://www.linuxdeveloper.space/install-unity-linux/
124124
$wc.DownloadFile("$baseUrl/UnityHub.AppImage", "$hubPath")

0 commit comments

Comments
 (0)