@@ -162,7 +162,7 @@ class UnityVersion : System.IComparable {
162
162
UnityVersion([string ] $version ) {
163
163
$parts = $version.Split (' -' )
164
164
165
- $parts [0 ] -match " (\d+)\.(\d+)\.(\d+)([fpb ])(\d+)" | Out-Null
165
+ $parts [0 ] -match " (\d+)\.(\d+)\.(\d+)([fpba ])(\d+)" | Out-Null
166
166
if ( $Matches.Count -ne 6 ) { throw " Invalid unity version: $version " }
167
167
$this.Major = [int ]($Matches [1 ]);
168
168
$this.Minor = [int ]($Matches [2 ]);
@@ -290,15 +290,15 @@ function Find-UnitySetupInstaller {
290
290
$currentOS = Get-OperatingSystem
291
291
switch ($currentOS ) {
292
292
([OperatingSystem ]::Windows) {
293
- $unitySetupRegEx = " ^(.+)\/([a-z0-9]+)\/Windows64EditorInstaller\/UnitySetup64-(\d+)\.(\d+)\.(\d+)([fpb ])(\d+).exe$"
293
+ $unitySetupRegEx = " ^(.+)\/([a-z0-9]+)\/Windows64EditorInstaller\/UnitySetup64-(\d+)\.(\d+)\.(\d+)([fpba ])(\d+).exe$"
294
294
$targetSupport = " TargetSupportInstaller"
295
295
$installerExtension = " exe"
296
296
}
297
297
([OperatingSystem ]::Linux) {
298
298
throw " Find-UnitySetupInstaller has not been implemented on the Linux platform. Contributions welcomed!" ;
299
299
}
300
300
([OperatingSystem ]::Mac) {
301
- $unitySetupRegEx = " ^(.+)\/([a-z0-9]+)\/MacEditorInstaller\/Unity-(\d+)\.(\d+)\.(\d+)([fpb ])(\d+).pkg$"
301
+ $unitySetupRegEx = " ^(.+)\/([a-z0-9]+)\/MacEditorInstaller\/Unity-(\d+)\.(\d+)\.(\d+)([fpba ])(\d+).pkg$"
302
302
$targetSupport = " MacEditorTargetInstaller"
303
303
$installerExtension = " pkg"
304
304
}
@@ -399,7 +399,7 @@ function Find-UnitySetupInstaller {
399
399
}
400
400
else {
401
401
# Regex needs to be reconfigured to parse builtin_shaders's url link
402
- $unitySetupRegEx = " ^(.+)\/([a-z0-9]+)\/builtin_shaders-(\d+)\.(\d+)\.(\d+)([fpb ])(\d+).zip$"
402
+ $unitySetupRegEx = " ^(.+)\/([a-z0-9]+)\/builtin_shaders-(\d+)\.(\d+)\.(\d+)([fpba ])(\d+).zip$"
403
403
}
404
404
}
405
405
0 commit comments