Skip to content

Commit

Permalink
Add other placeholder files for azure-functions-core-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
flcdrg committed Jun 24, 2024
1 parent a457755 commit 123d7e6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 32 deletions.
1 change: 1 addition & 0 deletions azure-functions-core-tools/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is not the official azure-functions-core-tools package. Rather, it exists just to automatically submit the binaries for new releases to VirusTotal.
43 changes: 12 additions & 31 deletions azure-functions-core-tools/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,41 +1,22 @@
$ErrorActionPreference = 'STOP';
$ErrorActionPreference = 'STOP';

$packageName= 'azure-functions-core-tools'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url_arm64 = 'https://functionscdn.azureedge.net/public/4.0.5858/Azure.Functions.Cli.win-arm64.4.0.5858.zip'
$url_x86 = 'https://functionscdn.azureedge.net/public/4.0.5858/Azure.Functions.Cli.win-x86.4.0.5858.zip'
$url_x64 = 'https://functionscdn.azureedge.net/public/4.0.5858/Azure.Functions.Cli.win-x64.4.0.5858.zip'
$packageName = 'azure-functions-core-tools'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url_arm64 = 'https://functionscdn.azureedge.net/public/4.0.5858/Azure.Functions.Cli.win-arm64.4.0.5858.zip'
$url_x86 = 'https://github.com/Azure/azure-functions-core-tools/releases/download/4.0.5858/Azure.Functions.Cli.win-x86.4.0.5858.zip'
$url_x64 = 'https://github.com/Azure/azure-functions-core-tools/releases/download/4.0.5858/Azure.Functions.Cli.win-x64.4.0.5858.zip'
$checksum_arm64 = '2632B8F4150FCB4C6CA667C51C4F1E2F9B1DCE0D46BD15656A12447486E6567DA2657F8E9EC69466DFB1DB13884887151FF795B5DA35CEF4B00C911065AC3A2B'
$checksum_x86 = '4ED3E01DE76FCE5AA2C1B3DAE31FA549BBAB34008BC890A110D860075136D1B0A5BADCFD46550205FF04EA08E8148A7D620722E064A92F6F0AA6D52380AFEACE'
$checksum_x64 = 'FECE275A50762E27815A92DD3B1C92925F8459B06765D7F2384ED70F584B8DB857BE06EE1A63E60F6025D9A42572F9DFBBD04818302A719341B5F7403CC3B2F8'

# Get-PackageParameters returns a hash table array of values
$pp = Get-PackageParameters
# If specifically asked for x64 or arm64, we use that
if ($pp.ContainsKey('x64'))
{
$url = $url_x64
$checksum = $checksum_x64
}
elseif ($pp.ContainsKey('arm64'))
{
$url = $url_arm64
$checksum = $checksum_arm64
}
else
{
# By default, we want the x86 installer
$url = $url_x86
$checksum = $checksum_x86
}
$checksum_x86 = '448ec30de82f04caebd46f238280c4d104ffaf4b5da97a9bd6d24a391ef831ce'
$checksum_x64 = '88441e477e9d48162253c259a6d0625b0a8539fbc17228f739e8d9309d0ef9ec'

$packageArgs = @{
packageName = $packageName
unzipLocation = $toolsDir
url = $url
checksum = $checksum
url = $url_x86
url64 = $url_x64
checksum = $checksum_x86
checksum64 = $checksum_x64
checksumType = 'SHA512'
}

Install-ChocolateyZipPackage @packageArgs

2 changes: 1 addition & 1 deletion azure-functions-core-tools/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ function global:au_GetLatest {
return $Latest
}

update -Force
update -Force -NoReadme

0 comments on commit 123d7e6

Please sign in to comment.