From fc3922b4bf4d712b78ffcdd48abef958f78c36f6 Mon Sep 17 00:00:00 2001 From: Qrius Date: Tue, 14 Jan 2025 13:16:57 +0100 Subject: Delete tmp dir --- .gitignore | 1 + packaging/package_debian.sh | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 123b206..c6299bc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ target/ templates/ content/ +*.deb diff --git a/packaging/package_debian.sh b/packaging/package_debian.sh index 6549717..f583ce4 100755 --- a/packaging/package_debian.sh +++ b/packaging/package_debian.sh @@ -5,11 +5,12 @@ set -o pipefail tmpdir=$(mktemp -d) dir="${tmpdir}/skaldpress" +origdir="$(pwd)" mkdir -p ${dir} rm -r ${dir} mkdir -p ${dir} -cargo build --release +cargo build --features guile --release bindir=${dir}/usr/local/bin mkdir -p ${bindir} @@ -25,3 +26,7 @@ cp smp.1 ${mandir}/smp.1 cd ${tmpdir} dpkg-deb --build skaldpress + +cd "${origdir}" +cp "${tmpdir}/skaldpress.deb" "$(pwd)/skaldpress.deb" +rm -r "${tmpdir}" -- cgit v1.2.3