mirror of
https://github.com/jellyfin/jellyfin-media-player.git
synced 2024-11-23 14:09:40 +00:00
28 lines
552 B
Bash
Executable File
28 lines
552 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o xtrace
|
|
|
|
# move to source directory
|
|
pushd ${SOURCE_DIR}
|
|
cp debian-webclient-rules ./debian/rules
|
|
|
|
# install deps
|
|
echo y | mk-build-deps -i
|
|
|
|
# build deb
|
|
dpkg-buildpackage -us -uc --pre-clean --post-clean
|
|
|
|
mkdir -p ${ARTIFACT_DIR}
|
|
for source_file in ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes}
|
|
do
|
|
file=$(basename "$source_file")
|
|
mv "$source_file" "${ARTIFACT_DIR}/${file%.*}-${TAG}.${file##*.}"
|
|
done
|
|
|
|
if [[ ${IS_DOCKER} == YES ]]; then
|
|
chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
|
|
fi
|
|
|
|
popd
|