Skip to content

Instantly share code, notes, and snippets.

@littledivy
Created January 16, 2026 06:32
Show Gist options
  • Select an option

  • Save littledivy/d34d34dbe1c3262464584b0555abff4b to your computer and use it in GitHub Desktop.

Select an option

Save littledivy/d34d34dbe1c3262464584b0555abff4b to your computer and use it in GitHub Desktop.
rusty_v8 publish release rescue
#!/bin/bash
set -e
rm -rf gen_temp gen
mkdir -p gen_temp
gh run download 21040538462 -p "src_binding_*.rs" -D gen_temp
mkdir -p gen
for dir in gen_temp/*/; do
if [ -d "$dir" ]; then
for file in "$dir"*.rs; do
if [ -f "$file" ]; then
cp "$file" gen/
fi
done
fi
done
rm -rf gen_temp
echo "Downloaded binding files:"
ls -1 gen/
echo ""
echo "Ready to publish. Run: cargo publish -vv --locked --allow-dirty"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment