diff --git a/scripts/smoke-vscode-marketplaces.sh b/scripts/smoke-vscode-marketplaces.sh index c65043f..587abb2 100755 --- a/scripts/smoke-vscode-marketplaces.sh +++ b/scripts/smoke-vscode-marketplaces.sh @@ -13,7 +13,7 @@ fi for ((attempt = 1; attempt <= attempts; attempt++)); do rm -f marketplace.json marketplace.vsix open-vsx.json open-vsx.vsix if jq -n '{filters:[{criteria:[{filterType:7,value:"brokk.bifrost-vscode"}],pageNumber:1,pageSize:1}],flags:914}' > marketplace-query.json \ - && curl --fail --silent --show-error --location \ + && curl --fail --silent --show-error --compressed --location \ -H 'Content-Type: application/json' \ -H 'Accept: application/json;api-version=7.2-preview.1' \ --data-binary @marketplace-query.json \ @@ -21,16 +21,16 @@ for ((attempt = 1; attempt <= attempts; attempt++)); do && jq -e --arg version "$version" \ '[.results[0].extensions[0].versions[] | select(.version == $version)] | length == 1' \ marketplace.json >/dev/null \ - && curl --fail --silent --show-error --location \ + && curl --fail --silent --show-error --compressed --location \ "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/brokk/vsextensions/bifrost-vscode/${version}/vspackage" \ -o marketplace.vsix \ - && curl --fail --silent --show-error --location \ + && curl --fail --silent --show-error --compressed --location \ "https://open-vsx.org/api/brokk/bifrost-vscode/${version}" > open-vsx.json \ && open_vsx_url="$(jq -er '.files.download' open-vsx.json)" \ - && curl --fail --silent --show-error --location "$open_vsx_url" -o open-vsx.vsix; then + && curl --fail --silent --show-error --compressed --location "$open_vsx_url" -o open-vsx.vsix; then marketplace_hash="$(sha256sum marketplace.vsix | cut -d ' ' -f 1)" open_vsx_hash="$(sha256sum open-vsx.vsix | cut -d ' ' -f 1)" - open_vsx_sidecar="$(curl --fail --silent --show-error --location \ + open_vsx_sidecar="$(curl --fail --silent --show-error --compressed --location \ "https://open-vsx.org/api/brokk/bifrost-vscode/${version}/file/brokk.bifrost-vscode-${version}.sha256" | tr -d '[:space:]')" unzip -tq marketplace.vsix unzip -tq open-vsx.vsix