fixup: rename amd64 dir to x64 for goreleaser
@@ -17,11 +17,16 @@ for i in "java v0.1.0" "yaml v0.3.0"; do
gh release download "${TAG}" --repo "pulumi/pulumi-${PULUMI_LANG}"
for DIST_OS in darwin linux windows; do
- for DIST_ARCH in amd64 arm64; do
- DIR="$DIST_OS-$DIST_ARCH"
- mkdir -p $DIR
- find '.' -name "*-$DIST_OS-$DIST_ARCH.tar.gz" -print0 -exec tar -xzvf {} -C $DIR \;
- find '.' -name "*-$DIST_OS-$DIST_ARCH.zip" -print0 -exec unzip {} -d $DIR \;
+ for i in "amd64 x64" "arm64 arm64"; do
+ set -- $i # treat strings in loop as args
+ DIST_ARCH="$1"
+ RENAMED_ARCH="$2" # goreleaser in pulumi/pulumi renames amd64 to x64
+
+ OUTDIR="$DIST_OS-$RENAMED_ARCH"
+
+ mkdir -p $OUTDIR
+ find '.' -name "*-$DIST_OS-$DIST_ARCH.tar.gz" -print0 -exec tar -xzvf {} -C $OUTDIR \;
+ find '.' -name "*-$DIST_OS-$DIST_ARCH.zip" -print0 -exec unzip {} -d $OUTDIR \;
done
done
