mirror of
https://github.com/jellyfin/jellyfin-media-player.git
synced 2024-11-23 05:59:43 +00:00
Switch to deb12/ubu2204/etc. format for .deb ver
Ensures compatibility with the main Jellyfin packages.
This commit is contained in:
parent
47b4b2b77e
commit
ce254ffc2d
1
.gitignore
vendored
1
.gitignore
vendored
@ -25,6 +25,7 @@ debian/.debhelper/
|
|||||||
debian/jellyfin-media-player/
|
debian/jellyfin-media-player/
|
||||||
debian/files
|
debian/files
|
||||||
debian/jellyfin-media-player.substvars
|
debian/jellyfin-media-player.substvars
|
||||||
|
debian/debhelper-build-stamp
|
||||||
dist.zip
|
dist.zip
|
||||||
obj-x86_64-linux-gnu/
|
obj-x86_64-linux-gnu/
|
||||||
deployment/dist
|
deployment/dist
|
||||||
|
@ -6,18 +6,25 @@ set -o xtrace
|
|||||||
# move to source directory
|
# move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd ${SOURCE_DIR}
|
||||||
|
|
||||||
|
# Convert to format like deb12 or ubu2204 like Jellyfin packages
|
||||||
|
IMGSNIP="${IMG:0:3}"
|
||||||
|
RELVER="$( grep 'VERSION_ID' /etc/os-release | awk -F'"' '{ print $2 }' | tr -d '.' )"
|
||||||
|
DEBVER="${IMGSNIP}${RELVER}"
|
||||||
|
|
||||||
|
cp -a debian/changelog /changelog.orig
|
||||||
|
sed -i "1 s/-1)/+${DEBVER})/" debian/changelog
|
||||||
|
|
||||||
# install deps
|
# install deps
|
||||||
echo y | mk-build-deps -i
|
echo y | mk-build-deps -i
|
||||||
|
rm jellyfin-media-player-build-deps_*
|
||||||
|
|
||||||
# build deb
|
# build deb
|
||||||
dpkg-buildpackage -us -uc --pre-clean --post-clean
|
dpkg-buildpackage -us -uc --pre-clean --post-clean
|
||||||
|
|
||||||
|
mv /changelog.orig debian/changelog
|
||||||
|
|
||||||
mkdir -p ${ARTIFACT_DIR}
|
mkdir -p ${ARTIFACT_DIR}
|
||||||
for source_file in ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes}
|
mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} ${ARTIFACT_DIR}/
|
||||||
do
|
|
||||||
file=$(basename "$source_file")
|
|
||||||
mv "$source_file" "${ARTIFACT_DIR}/${file%.*}-${TAG}.${file##*.}"
|
|
||||||
done
|
|
||||||
|
|
||||||
if [[ ${IS_DOCKER} == YES ]]; then
|
if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
|
chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
|
||||||
|
Loading…
Reference in New Issue
Block a user