From fb2ece62f986fc4933ad5a65449b9f2e0aa88c51 Mon Sep 17 00:00:00 2001 From: Carlo Piovesan Date: Tue, 5 Dec 2023 10:28:18 +0100 Subject: [PATCH] Support streamlined paths for duckdb-wasm --- scripts/extension-upload.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/extension-upload.sh b/scripts/extension-upload.sh index 32097f2..de4e405 100755 --- a/scripts/extension-upload.sh +++ b/scripts/extension-upload.sh @@ -74,7 +74,10 @@ fi # upload versioned version if [[ $7 = 'true' ]]; then if [[ $4 == wasm* ]]; then + # Old style paths with additional duckdb-wasm aws s3 cp $ext.compressed s3://$5/duckdb-wasm/$1/$2/duckdb-wasm/$3/$4/$1.duckdb_extension.wasm --acl public-read --content-encoding br --content-type="application/wasm" + # New style paths for duckdb-wasm, more uniforms + aws s3 cp $ext.compressed s3://$5/$1/$2/$3/$4/$1.duckdb_extension.wasm --acl public-read --content-encoding br --content-type="application/wasm" else aws s3 cp $ext.compressed s3://$5/$1/$2/$3/$4/$1.duckdb_extension.gz --acl public-read fi @@ -83,7 +86,10 @@ fi # upload to latest version if [[ $6 = 'true' ]]; then if [[ $4 == wasm* ]]; then + # Old style paths with additional duckdb-wasm aws s3 cp $ext.compressed s3://$5/duckdb-wasm/$3/$4/$1.duckdb_extension.wasm --acl public-read --content-encoding br --content-type="application/wasm" + # New style paths for duckdb-wasm, more uniforms + aws s3 cp $ext.compressed s3://$5/$3/$4/$1.duckdb_extension.wasm --acl public-read --content-encoding br --content-type="application/wasm" else aws s3 cp $ext.compressed s3://$5/$3/$4/$1.duckdb_extension.gz --acl public-read fi