Skip to content

Commit

Permalink
tool/fetch-release-artifacts: push to git the script in use for bundl…
Browse files Browse the repository at this point in the history
…ing release artifacts
  • Loading branch information
Will committed Oct 9, 2024
1 parent 6896177 commit 83e0303
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tool/fetch-release-artifacts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#! /usr/bin/env bash
set -e
heredir=$(realpath "$(dirname "$0")/..")
(
[ -d out/dist-unzipped-nested-tmp ] && rm -rf out/dist-unzipped-nested-tmp
mkdir -p out/dist-unzipped-nested-tmp
cd out/dist-unzipped-nested-tmp
gh run download -n wheels-apple -n wheels-linux -n aarch64-apple-darwin.tar -n aarch64-apple-darwin.tar.sha256sum -n aarch64-pc-windows-msvc.tar -n aarch64-pc-windows-msvc.tar.sha256sum -n aarch64-unknown-linux-gnu.tar -n aarch64-unknown-linux-gnu.tar.sha256sum -n aarch64-unknown-linux-musl.tar -n aarch64-unknown-linux-musl.tar.sha256sum -n armv7-unknown-linux-gnueabihf.tar -n armv7-unknown-linux-gnueabihf.tar.sha256sum -n armv7-unknown-linux-musleabihf.tar -n armv7-unknown-linux-musleabihf.tar.sha256sum -n x86_64-pc-windows-msvc.tar -n x86_64-pc-windows-msvc.tar.sha256sum -n x86_64-unknown-linux-gnu.tar -n x86_64-unknown-linux-gnu.tar.sha256sum -n x86_64-unknown-linux-musl.tar -n x86_64-unknown-linux-musl.tar.sha256sum
(
mkdir dist-unzipped-tmp
find . -type f | while read f
do mv "$f" "dist-unzipped-tmp/$(basename "$f")"
done
(
mkdir dist-tmp
find . -type f | while read f
do zip -r "$f.zip" "$f" && mv "$f.zip" "dist-tmp/$(basename "$f").zip"
done
[ -d "$heredir/out/dist" ] && rm -rf "$heredir/out/dist"
[ -d "$heredir/out" ] || mkdir -p "$heredir/out"
mv dist-tmp "$heredir/out/dist"
echo "$heredir/out/dist"
)
)
)

0 comments on commit 83e0303

Please sign in to comment.