2023-07-01 18:50:46 -04:00
|
|
|
#!/bin/bash
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
2023-07-11 12:59:22 -04:00
|
|
|
package_version=$(cargo pkgid | cut -d# -f2 | cut -d: -f2)
|
|
|
|
current_target=$(rustc -vV | sed -n 's|host: ||p')
|
|
|
|
|
|
|
|
package_filename="pbe-v${package_version}-${current_target}.tar.gz"
|
|
|
|
|
|
|
|
rm -f ./artifacts/bin/pbe
|
|
|
|
rm -f ./artifacts/bin/syntax_to_css
|
|
|
|
|
|
|
|
cargo clean
|
2023-07-01 18:50:46 -04:00
|
|
|
cargo install --path . --root ./artifacts/
|
|
|
|
cargo install --path ./syntax_to_css/ --root ./artifacts/
|
|
|
|
|
2023-07-11 12:59:22 -04:00
|
|
|
tar -cvf $package_filename \
|
|
|
|
example-site \
|
|
|
|
-C ./artifacts/bin \
|
|
|
|
pbe \
|
|
|
|
syntax_to_css
|
2023-07-01 18:50:46 -04:00
|
|
|
|
2023-07-11 12:59:22 -04:00
|
|
|
echo "Packaged release as ${package_filename}"
|