aboutsummaryrefslogtreecommitdiff
path: root/debian/docker/build.sh
blob: 32533f7711c417be26049bde3491b2f2fc5cdf4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

#= Debian .deb builder

set -o errexit
set -o xtrace

# Move to source directory
pushd "${SOURCE_DIR}"

# Build DEB
if [[ ${ARCH} != $( dpkg --print-architecture ) ]]; then
    export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}
    export CONFIG_CROSS="-a ${ARCH}"
fi
dpkg-buildpackage -us -uc ${CONFIG_CROSS} --pre-clean --post-clean

mkdir -p "${ARTIFACT_DIR}/"
mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} "${ARTIFACT_DIR}/"

popd
bgstack15