aws-sam-cli@1.94.0: Fix extraction (Closes #4980)

This commit is contained in:
HUMORCE 2023-08-01 05:58:53 +00:00
parent 9a77d0c129
commit 7c50da970b
No known key found for this signature in database
GPG Key ID: F0B8272F23E953D3

View File

@ -3,16 +3,22 @@
"description": "Build, test, debug, and deploy Serverless applications from CLI", "description": "Build, test, debug, and deploy Serverless applications from CLI",
"homepage": "https://aws.amazon.com/serverless/sam/", "homepage": "https://aws.amazon.com/serverless/sam/",
"license": "Apache-2.0", "license": "Apache-2.0",
"depends": "lessmsi",
"suggest": { "suggest": {
"AWS CLI": "aws" "AWS CLI": "aws"
}, },
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://github.com/aws/aws-sam-cli/releases/download/v1.94.0/AWS_SAM_CLI_64_PY3.msi", "url": "https://github.com/aws/aws-sam-cli/releases/download/v1.94.0/AWS_SAM_CLI_64_PY3.msi_",
"hash": "92bb9364aab6dd394ebf003b887e49bc26bc0a83de1546db688672167743a4d4" "hash": "92bb9364aab6dd394ebf003b887e49bc26bc0a83de1546db688672167743a4d4"
} }
}, },
"extract_dir": "Amazon\\AWSSAMCLI", "pre_install": [
"# Workaround for #4980",
"Invoke-ExternalCommand lessmsi -ArgumentList @('x', \"$dir\\$fname\", \"$dir\\\") -Quiet",
"movedir \"$dir\\SourceDir\\Amazon\\AWSSAMCLI\" \"$dir\"",
"Remove-Item \"$dir\\SourceDir\", \"$dir\\$fname\" -Force -Recurse"
],
"bin": [ "bin": [
"bin\\sam.cmd", "bin\\sam.cmd",
[ [
@ -26,7 +32,7 @@
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://github.com/aws/aws-sam-cli/releases/download/v$version/AWS_SAM_CLI_64_PY3.msi" "url": "https://github.com/aws/aws-sam-cli/releases/download/v$version/AWS_SAM_CLI_64_PY3.msi_"
} }
}, },
"hash": { "hash": {