diff --git a/Cargo.lock b/Cargo.lock index c7ae23e..ec44738 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -673,8 +673,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0" [[package]] -name = "empede-tide" -version = "0.1.0" +name = "empede" +version = "0.1.1" dependencies = [ "anyhow", "askama", diff --git a/Cargo.toml b/Cargo.toml index 22cb8e8..32b7ee2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,8 @@ [package] -name = "empede-tide" -version = "0.1.0" +name = "empede" +version = "0.1.1" edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] anyhow = "1.0.70" askama = "0.12.0" diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..f9c3383 --- /dev/null +++ b/release.sh @@ -0,0 +1,16 @@ +#!/bin/sh +set -ex + +cargo build --release + +rm -rf release/empede-$1-x86_64-linux +mkdir -p release/empede-$1-x86_64-linux +cp -r target/release/empede static/ README.md release/empede-$1-x86_64-linux + +if [ ! -z "$NIX_STORE" ]; then + patchelf --set-interpreter /usr/lib64/ld-linux-x86-64.so.2 release/empede-$1-x86_64-linux/empede +fi +strip release/empede-$1-x86_64-linux/empede + +cd release +tar czf empede-$1-x86_64-linux.tar.gz empede-$1-x86_64-linux