[macOS] Implement new directories hierarchy (#8741)
This commit is contained in:
@@ -13,7 +13,7 @@ function Enable-AutoLogon {
|
|||||||
[string] $Password
|
[string] $Password
|
||||||
)
|
)
|
||||||
|
|
||||||
$url = "https://raw.githubusercontent.com/actions/runner-images/main/images/macos/provision/bootstrap-provisioner/setAutoLogin.sh"
|
$url = "https://raw.githubusercontent.com/actions/runner-images/main/images/macos/assets/bootstrap-provisioner/setAutoLogin.sh"
|
||||||
$script = Invoke-RestMethod -Uri $url
|
$script = Invoke-RestMethod -Uri $url
|
||||||
$base64 = [Convert]::ToBase64String($script.ToCharArray())
|
$base64 = [Convert]::ToBase64String($script.ToCharArray())
|
||||||
$command = "echo $base64 | base64 --decode > ./setAutoLogin.sh;sudo bash ./setAutoLogin.sh '${UserName}' '${Password}';rm ./setAutoLogin.sh"
|
$command = "echo $base64 | base64 --decode > ./setAutoLogin.sh;sudo bash ./setAutoLogin.sh '${UserName}' '${Password}';rm ./setAutoLogin.sh"
|
||||||
@@ -43,7 +43,7 @@ function Invoke-SoftwareUpdateArm64 {
|
|||||||
'14.\d' { $nextOSVersion = 'NotYetDefined' }
|
'14.\d' { $nextOSVersion = 'NotYetDefined' }
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = "https://raw.githubusercontent.com/actions/runner-images/main/images/macos/provision/configuration/auto-software-update-arm64.exp"
|
$url = "https://raw.githubusercontent.com/actions/runner-images/main/images/macos/assets/auto-software-update-arm64.exp"
|
||||||
$script = Invoke-RestMethod -Uri $url
|
$script = Invoke-RestMethod -Uri $url
|
||||||
foreach ($update in $listOfUpdates) {
|
foreach ($update in $listOfUpdates) {
|
||||||
if ($update -notmatch "$nextOSVersion") {
|
if ($update -notmatch "$nextOSVersion") {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ function Validate-Scripts {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$PathUbuntu = "./images/ubuntu/scripts"
|
$PathUbuntu = "./images/ubuntu/scripts"
|
||||||
$PathMacOS = "./images/macos/provision"
|
$PathMacOS = "./images/macos"
|
||||||
$PatternUbuntu = "#!/bin/bash -e"
|
$PatternUbuntu = "#!/bin/bash -e"
|
||||||
$PatternMacOS = "#!/bin/bash -e -o pipefail"
|
$PatternMacOS = "#!/bin/bash -e -o pipefail"
|
||||||
$ScriptsWithBrokenShebang = @()
|
$ScriptsWithBrokenShebang = @()
|
||||||
|
|||||||
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user