diff --git a/packages/googlechrome.vm/googlechrome.vm.nuspec b/packages/googlechrome.vm/googlechrome.vm.nuspec new file mode 100644 index 000000000..49bdb2653 --- /dev/null +++ b/packages/googlechrome.vm/googlechrome.vm.nuspec @@ -0,0 +1,12 @@ + + + + googlechrome.vm + 0.0.0.20240111 + Google LLC. + Chrome is a popular web browser. + + + + + diff --git a/packages/googlechrome.vm/tools/chocolateyinstall.ps1 b/packages/googlechrome.vm/tools/chocolateyinstall.ps1 new file mode 100644 index 000000000..1ec1ab4e2 --- /dev/null +++ b/packages/googlechrome.vm/tools/chocolateyinstall.ps1 @@ -0,0 +1,26 @@ +$ErrorActionPreference = 'Stop' +Import-Module vm.common -Force -DisableNameChecking + +try { + # Download the installer + $packageArgs = @{ + packageName = $env:ChocolateyPackageName + file = Join-Path ${Env:TEMP} 'googlechromeinstaller.msi' + url = 'https://dl.google.com/tag/s/dl/chrome/install/googlechromestandaloneenterprise.msi' + url64bit = 'https://dl.google.com/tag/s/dl/chrome/install/googlechromestandaloneenterprise64.msi' + } + $filePath = Get-ChocolateyWebFile @packageArgs + VM-Assert-Path $filePath + VM-Assert-Signature $filePath + + # Install the downloaded installer + $packageArgs = @{ + packageName = $env:ChocolateyPackageName + file = $filePath + fileType = 'MSI' + silentArgs = "/quiet /norestart /l*v `"$($env:TEMP)\$($env:chocolateyPackageName).$($env:chocolateyPackageVersion).MsiInstall.log`"" + } + Install-ChocolateyInstallPackage @packageArgs +} catch { + VM-Write-Log-Exception $_ +} diff --git a/scripts/test/lint.py b/scripts/test/lint.py index f21e9c851..7d6fd9a02 100644 --- a/scripts/test/lint.py +++ b/scripts/test/lint.py @@ -312,6 +312,7 @@ class UsesInvalidCategory(Lint): "common.vm", "debloat.vm", "flarevm.installer.vm", + "googlechrome.vm", "ida.plugin.capa.vm", "idafree.vm", "installer.vm",