Fix publish script
This commit is contained in:
@@ -8,27 +8,27 @@ cp -r src "$tmp"/.
|
|||||||
cp -r LICENSE README.md "$tmp"/.
|
cp -r LICENSE README.md "$tmp"/.
|
||||||
|
|
||||||
### Publish the 2D version.
|
### Publish the 2D version.
|
||||||
sed 's#\.\./\.\./src#src#g' build/rapier2d/Cargo.toml > "$tmp"/Cargo.toml
|
sed 's#\.\./\.\./src#src#g' crates/rapier2d/Cargo.toml > "$tmp"/Cargo.toml
|
||||||
currdir=$(pwd)
|
currdir=$(pwd)
|
||||||
cd "$tmp" && cargo publish
|
cd "$tmp" && cargo publish
|
||||||
cd "$currdir" || exit
|
cd "$currdir" || exit
|
||||||
|
|
||||||
|
|
||||||
### Publish the 3D version.
|
### Publish the 3D version.
|
||||||
sed 's#\.\./\.\./src#src#g' build/rapier3d/Cargo.toml > "$tmp"/Cargo.toml
|
sed 's#\.\./\.\./src#src#g' crates/rapier3d/Cargo.toml > "$tmp"/Cargo.toml
|
||||||
cp -r LICENSE README.md "$tmp"/.
|
cp -r LICENSE README.md "$tmp"/.
|
||||||
cd "$tmp" && cargo publish
|
cd "$tmp" && cargo publish
|
||||||
cd "$currdir" || exit
|
cd "$currdir" || exit
|
||||||
|
|
||||||
### Publish the 2D f64 version.
|
### Publish the 2D f64 version.
|
||||||
sed 's#\.\./\.\./src#src#g' build/rapier2d-f64/Cargo.toml > "$tmp"/Cargo.toml
|
sed 's#\.\./\.\./src#src#g' crates/rapier2d-f64/Cargo.toml > "$tmp"/Cargo.toml
|
||||||
currdir=$(pwd)
|
currdir=$(pwd)
|
||||||
cd "$tmp" && cargo publish
|
cd "$tmp" && cargo publish
|
||||||
cd "$currdir" || exit
|
cd "$currdir" || exit
|
||||||
|
|
||||||
|
|
||||||
### Publish the 3D f64 version.
|
### Publish the 3D f64 version.
|
||||||
sed 's#\.\./\.\./src#src#g' build/rapier3d-f64/Cargo.toml > "$tmp"/Cargo.toml
|
sed 's#\.\./\.\./src#src#g' crates/rapier3d-f64/Cargo.toml > "$tmp"/Cargo.toml
|
||||||
cp -r LICENSE README.md "$tmp"/.
|
cp -r LICENSE README.md "$tmp"/.
|
||||||
cd "$tmp" && cargo publish
|
cd "$tmp" && cargo publish
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user