From c10c08f15018934eda3c00002c348a1e27240c93 Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Wed, 5 Mar 2025 14:11:36 +0100 Subject: [PATCH] publish f64 version of testbed (#751) --- scripts/publish-testbeds.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/publish-testbeds.sh b/scripts/publish-testbeds.sh index 92124fd..fe67901 100755 --- a/scripts/publish-testbeds.sh +++ b/scripts/publish-testbeds.sh @@ -24,11 +24,23 @@ currdir=$(pwd) cd "$tmp" && cargo publish $DRY_RUN cd "$currdir" || exit - ### Publish the 3D version. $gsed 's#\.\./\.\./src#src#g' crates/rapier_testbed3d/Cargo.toml > "$tmp"/Cargo.toml $gsed -i 's#\.\./rapier#./crates/rapier#g' "$tmp"/Cargo.toml cp -r LICENSE README.md "$tmp"/. cd "$tmp" && cargo publish $DRY_RUN +### Publish the 2D f64 version. +$gsed 's#\.\./\.\./src#src#g' crates/rapier_testbed2d-f64/Cargo.toml > "$tmp"/Cargo.toml +$gsed -i 's#\.\./rapier#./crates/rapier#g' "$tmp"/Cargo.toml +currdir=$(pwd) +cd "$tmp" && cargo publish $DRY_RUN +cd "$currdir" || exit + +### Publish the 3D f64 version. +$gsed 's#\.\./\.\./src#src#g' crates/rapier_testbed3d-f64/Cargo.toml > "$tmp"/Cargo.toml +$gsed -i 's#\.\./rapier#./crates/rapier#g' "$tmp"/Cargo.toml +cp -r LICENSE README.md "$tmp"/. +cd "$tmp" && cargo publish $DRY_RUN + rm -rf "$tmp"