Skip to content

Commit

Permalink
chore: publish script edits readme path to current directory (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz authored Jun 18, 2024
1 parent a300252 commit 56f9870
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ cp -r LICENSE README.md "$tmp"/.

### Publish the 2D version.
sed 's#\.\./src#src#g' bevy_rapier2d/Cargo.toml > "$tmp"/Cargo.toml
gawk -i inplace '{ gsub("../README.md", "README.md") }; { print }' "$tmp"/Cargo.toml
currdir=$(pwd)
cd "$tmp" && cargo publish
cd "$currdir" || exit


### Publish the 3D version.
sed 's#\.\./src#src#g' bevy_rapier3d/Cargo.toml > "$tmp"/Cargo.toml
gawk -i inplace '{ gsub("../README.md", "README.md") }; { print }' "$tmp"/Cargo.toml
cp -r LICENSE README.md "$tmp"/.
cd "$tmp" && cargo publish

Expand Down

0 comments on commit 56f9870

Please sign in to comment.