Testing wrt VMware Tools auto-start
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
6a18b5bf22
commit
b041658fbf
@ -204,30 +204,30 @@ build {
|
|||||||
"scripts/Install-WinGet.ps1"
|
"scripts/Install-WinGet.ps1"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
provisioner "powershell" {
|
|
||||||
inline = [
|
|
||||||
"winget install mozilla.firefox",
|
|
||||||
"winget install 7zip.7zip",
|
|
||||||
"winget install microsoft.dotnetframework"
|
|
||||||
]
|
|
||||||
// valid_exit_codes = [0, 3010]
|
|
||||||
}
|
|
||||||
// provisioner "powershell" {
|
// provisioner "powershell" {
|
||||||
// inline = [
|
// inline = [
|
||||||
// "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12",
|
// "winget install mozilla.firefox",
|
||||||
// "Invoke-Expression ((New-Object Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))"
|
// "winget install 7zip.7zip",
|
||||||
|
// "winget install microsoft.dotnetframework"
|
||||||
// ]
|
// ]
|
||||||
|
// // valid_exit_codes = [0, 3010]
|
||||||
// }
|
// }
|
||||||
// provisioner "powershell" {
|
provisioner "powershell" {
|
||||||
// inline = [
|
inline = [
|
||||||
// "choco config set --name=limit-output --value=LimitOutput",
|
"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12",
|
||||||
// "choco install -y dotnetfx",
|
"Invoke-Expression ((New-Object Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))"
|
||||||
// "choco install -y 7zip.install",
|
]
|
||||||
// "choco install -y sysinternals",
|
}
|
||||||
// "choco install -y firefox"
|
provisioner "powershell" {
|
||||||
// ]
|
inline = [
|
||||||
// valid_exit_codes = [0, 3010]
|
"choco config set --name=limit-output --value=LimitOutput",
|
||||||
// }
|
"choco install -y dotnetfx",
|
||||||
|
"choco install -y 7zip.install",
|
||||||
|
"choco install -y sysinternals",
|
||||||
|
"choco install -y firefox"
|
||||||
|
]
|
||||||
|
valid_exit_codes = [0, 3010]
|
||||||
|
}
|
||||||
|
|
||||||
provisioner "windows-update" {
|
provisioner "windows-update" {
|
||||||
}
|
}
|
||||||
|
@ -29,16 +29,22 @@ ForEach ($Dependency in $AppxDependencies) {
|
|||||||
}
|
}
|
||||||
Invoke-WebRequest @InvokeWebRequestSplat
|
Invoke-WebRequest @InvokeWebRequestSplat
|
||||||
}
|
}
|
||||||
# Download latest release from github
|
# Download latest release (along with license) from github
|
||||||
$InvokeRestMethodSplat = @{
|
$InvokeRestMethodSplat = @{
|
||||||
Uri = "https://api.github.com/repos/microsoft/winget-cli/releases/latest"
|
Uri = "https://api.github.com/repos/microsoft/winget-cli/releases/latest"
|
||||||
Method = 'GET'
|
Method = 'GET'
|
||||||
}
|
}
|
||||||
|
$LatestRelease = Invoke-RestMethod @InvokeRestMethodSplat
|
||||||
$InvokeWebRequestSplat = @{
|
$InvokeWebRequestSplat = @{
|
||||||
Uri = ((Invoke-RestMethod @InvokeRestMethodSplat).assets | Where-Object {$_.name -like '*.msixbundle'}).browser_download_url
|
Uri = ($LatestRelease.assets | Where-Object {$_.name -like '*.msixbundle'}).browser_download_url
|
||||||
OutFile = "$env:temp\winget.msixbundle"
|
OutFile = "$env:temp\winget.msixbundle"
|
||||||
}
|
}
|
||||||
Invoke-WebRequest @InvokeWebRequestSplat
|
Invoke-WebRequest @InvokeWebRequestSplat
|
||||||
|
$InvokeWebRequestSplat = @{
|
||||||
|
Uri = ($LatestRelease.assets | Where-Object {$_.name -like '*license*.xml'}).browser_download_url
|
||||||
|
OutFile = "$env:temp\wingetlicense.xml"
|
||||||
|
}
|
||||||
|
Invoke-WebRequest @InvokeWebRequestSplat
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
$AppxDependencies.ShortName | ForEach-Object {
|
$AppxDependencies.ShortName | ForEach-Object {
|
||||||
|
Loading…
Reference in New Issue
Block a user