summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xpackaging/package_debian.sh7
2 files changed, 7 insertions, 1 deletions
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}"