From 158a45c9aee09e57185fafef1b7d014c61d9856c Mon Sep 17 00:00:00 2001 From: Sijmen Date: Thu, 27 Apr 2023 18:56:10 +0200 Subject: [PATCH] Version bump --- Cargo.lock | 4 ++-- Cargo.toml | 6 ++---- release.sh | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100755 release.sh 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