diff --git a/dist/unity-install.ps1 b/dist/unity-install.ps1 index c68441a..b4ba8ee 100644 --- a/dist/unity-install.ps1 +++ b/dist/unity-install.ps1 @@ -29,7 +29,7 @@ if ( (-not $global:PSVersionTable.Platform) -or ($global:PSVersionTable.Platform $editorFileEx = "\Editor\Unity.exe" if ([string]::IsNullOrEmpty($modulesList)) { - $modules = @('windows-il2cpp', 'universal-windows-platform', 'lumin', 'webgl', 'android', 'ios') + $modules = @('windows-il2cpp', 'universal-windows-platform', 'android', 'ios') } #"Unity Hub.exe" -- --headless help @@ -46,7 +46,7 @@ elseif ( $global:PSVersionTable.OS.Contains("Darwin") ) { $editorFileEx = "/Unity.app/Contents/MacOS/Unity" if ([string]::IsNullOrEmpty($modulesList)) { - $modules = @('mac-il2cpp', 'ios', 'lumin', 'webgl', 'android') + $modules = @('mac-il2cpp', 'ios', 'android') } # /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless help @@ -63,14 +63,14 @@ elseif ( $global:PSVersionTable.OS.Contains("Linux") ) { $editorFileEx = "/Editor/Unity" if ([string]::IsNullOrEmpty($modulesList)) { - $modules = @('linux-il2cpp', 'webgl', 'android', 'ios') + $modules = @('linux-il2cpp', 'android', 'ios') } # /UnityHub.AppImage --headless help # xvfb-run --auto-servernum "$HOME/Unity Hub/UnityHub.AppImage" --headless help function Invoke-UnityHub { $argsList = $args.Split(" ") - xvfb-run --auto-servernum "$hubPath" --headless $argsList + xvfb-run --auto-servernum "$hubPath" --disable-gpu-sandbox --headless $argsList } } @@ -118,7 +118,7 @@ if ( -not (Test-Path -Path "$hubPath") ) { elseif ($global:PSVersionTable.OS.Contains("Linux")) { mkdir -pv "$HOME/Unity Hub" "$HOME/.config/Unity Hub" "$editorRootPath" sudo apt-get update - sudo apt-get install -y libgconf-2-4 libglu1 libasound2 libgtk2.0-0 libgtk-3-0 libnss3 zenity xvfb + sudo apt-get install -y libgconf-2-4 libglu1 libasound2 libgtk2.0-0 libgtk-3-0 libnss3 zenity xvfb libssl1.1 libfuse2 #https://www.linuxdeveloper.space/install-unity-linux/ $wc.DownloadFile("$baseUrl/UnityHub.AppImage", "$hubPath") diff --git a/package.json b/package.json index c47e844..a346b4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "unity-setup", - "version": "5.0.0", + "version": "6.0.0", "description": "An atomic GitHub action to download and install the Unity Editor for runners.", "main": "src/index.js", "scripts": { diff --git a/src/unity-install.ps1 b/src/unity-install.ps1 index c68441a..b4ba8ee 100644 --- a/src/unity-install.ps1 +++ b/src/unity-install.ps1 @@ -29,7 +29,7 @@ if ( (-not $global:PSVersionTable.Platform) -or ($global:PSVersionTable.Platform $editorFileEx = "\Editor\Unity.exe" if ([string]::IsNullOrEmpty($modulesList)) { - $modules = @('windows-il2cpp', 'universal-windows-platform', 'lumin', 'webgl', 'android', 'ios') + $modules = @('windows-il2cpp', 'universal-windows-platform', 'android', 'ios') } #"Unity Hub.exe" -- --headless help @@ -46,7 +46,7 @@ elseif ( $global:PSVersionTable.OS.Contains("Darwin") ) { $editorFileEx = "/Unity.app/Contents/MacOS/Unity" if ([string]::IsNullOrEmpty($modulesList)) { - $modules = @('mac-il2cpp', 'ios', 'lumin', 'webgl', 'android') + $modules = @('mac-il2cpp', 'ios', 'android') } # /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless help @@ -63,14 +63,14 @@ elseif ( $global:PSVersionTable.OS.Contains("Linux") ) { $editorFileEx = "/Editor/Unity" if ([string]::IsNullOrEmpty($modulesList)) { - $modules = @('linux-il2cpp', 'webgl', 'android', 'ios') + $modules = @('linux-il2cpp', 'android', 'ios') } # /UnityHub.AppImage --headless help # xvfb-run --auto-servernum "$HOME/Unity Hub/UnityHub.AppImage" --headless help function Invoke-UnityHub { $argsList = $args.Split(" ") - xvfb-run --auto-servernum "$hubPath" --headless $argsList + xvfb-run --auto-servernum "$hubPath" --disable-gpu-sandbox --headless $argsList } } @@ -118,7 +118,7 @@ if ( -not (Test-Path -Path "$hubPath") ) { elseif ($global:PSVersionTable.OS.Contains("Linux")) { mkdir -pv "$HOME/Unity Hub" "$HOME/.config/Unity Hub" "$editorRootPath" sudo apt-get update - sudo apt-get install -y libgconf-2-4 libglu1 libasound2 libgtk2.0-0 libgtk-3-0 libnss3 zenity xvfb + sudo apt-get install -y libgconf-2-4 libglu1 libasound2 libgtk2.0-0 libgtk-3-0 libnss3 zenity xvfb libssl1.1 libfuse2 #https://www.linuxdeveloper.space/install-unity-linux/ $wc.DownloadFile("$baseUrl/UnityHub.AppImage", "$hubPath")