mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
[Windows] revert PR3766 (#4278)
This commit is contained in:
committed by
GitHub
parent
5690fb5b41
commit
7e90162def
@@ -9,16 +9,6 @@ Choco-Install -PackageName git -ArgumentList '--installargs="/VERYSILENT /NOREST
|
|||||||
# Install hub
|
# Install hub
|
||||||
Choco-Install -PackageName hub
|
Choco-Install -PackageName hub
|
||||||
|
|
||||||
# Install GVFS
|
|
||||||
$url = "https://api.github.com/repos/microsoft/VFSForGit/releases/latest"
|
|
||||||
[System.String] $gvfsLatest = (Invoke-RestMethod -Uri $url).assets.browser_download_url -match "SetupGVFS.+\.exe$"
|
|
||||||
$gvfsInstallerPath = Start-DownloadWithRetry -Url $gvfsLatest -Name "SetupGVFS.exe"
|
|
||||||
|
|
||||||
# Start-Process waits on the entire process tree but Wait-Process only waits on the initiating process(GVFS.Service.UI.exe)
|
|
||||||
$env:GVFS_UNATTENDED = "1"
|
|
||||||
$argList = "/VERYSILENT", "/NORESTART", "/NOCANCEL", "/SP-", "/CLOSEAPPLICATIONS", "/RESTARTAPPLICATIONS", "/SUPPRESSMSGBOXES"
|
|
||||||
Start-Process $gvfsInstallerPath -ArgumentList $argList -PassThru | Wait-Process
|
|
||||||
|
|
||||||
# Disable GCM machine-wide
|
# Disable GCM machine-wide
|
||||||
[Environment]::SetEnvironmentVariable("GCM_INTERACTIVE", "Never", [System.EnvironmentVariableTarget]::Machine)
|
[Environment]::SetEnvironmentVariable("GCM_INTERACTIVE", "Never", [System.EnvironmentVariableTarget]::Machine)
|
||||||
|
|
||||||
|
|||||||
@@ -104,7 +104,6 @@ $toolsList = @(
|
|||||||
(Get-GHCVersion),
|
(Get-GHCVersion),
|
||||||
(Get-GitVersion),
|
(Get-GitVersion),
|
||||||
(Get-GitLFSVersion),
|
(Get-GitLFSVersion),
|
||||||
(Get-GVFSVersion),
|
|
||||||
(Get-InnoSetupVersion),
|
(Get-InnoSetupVersion),
|
||||||
(Get-JQVersion),
|
(Get-JQVersion),
|
||||||
(Get-KindVersion),
|
(Get-KindVersion),
|
||||||
|
|||||||
@@ -73,11 +73,6 @@ function Get-GitLFSVersion {
|
|||||||
return "Git LFS $gitLfsVersion"
|
return "Git LFS $gitLfsVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-GVFSVersion {
|
|
||||||
$gvfsVersion = (Get-Command gvfs).Version
|
|
||||||
return "GVFS $gvfsVersion"
|
|
||||||
}
|
|
||||||
|
|
||||||
function Get-InnoSetupVersion {
|
function Get-InnoSetupVersion {
|
||||||
return $(choco list --local-only innosetup) | Select-String -Pattern "InnoSetup"
|
return $(choco list --local-only innosetup) | Select-String -Pattern "InnoSetup"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,9 +23,3 @@ Describe "Git" {
|
|||||||
$env:GCM_INTERACTIVE | Should -BeExactly Never
|
$env:GCM_INTERACTIVE | Should -BeExactly Never
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "GVFS" {
|
|
||||||
It "GVFS is installed" {
|
|
||||||
"gvfs --version" | Should -ReturnZeroExitCode
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user