mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
Merge pull request #10672 from Erotemic/fix_bash_install_paths
Quote bash paths to prevent word splitting
This commit is contained in:
commit
f039de033a
17 changed files with 68 additions and 68 deletions
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
if [[ ${IS_DOCKER} == YES ]]; then
|
if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
# Remove BuildRequires for dotnet, since it's installed manually
|
# Remove BuildRequires for dotnet, since it's installed manually
|
||||||
|
@ -39,10 +39,10 @@ make -f fedora/Makefile srpm outdir=/root/rpmbuild/SRPMS
|
||||||
rpmbuild --rebuild -bb /root/rpmbuild/SRPMS/jellyfin-*.src.rpm
|
rpmbuild --rebuild -bb /root/rpmbuild/SRPMS/jellyfin-*.src.rpm
|
||||||
|
|
||||||
# Move the artifacts out
|
# Move the artifacts out
|
||||||
mv /root/rpmbuild/RPMS/x86_64/jellyfin-*.rpm /root/rpmbuild/SRPMS/jellyfin-*.src.rpm ${ARTIFACT_DIR}/
|
mv /root/rpmbuild/RPMS/x86_64/jellyfin-*.rpm /root/rpmbuild/SRPMS/jellyfin-*.src.rpm "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
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}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f fedora/jellyfin*.tar.gz
|
rm -f fedora/jellyfin*.tar.gz
|
||||||
|
@ -51,7 +51,7 @@ if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
pushd fedora
|
pushd fedora
|
||||||
|
|
||||||
cp -a /tmp/spec.orig jellyfin.spec
|
cp -a /tmp/spec.orig jellyfin.spec
|
||||||
chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
|
chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"
|
||||||
|
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
if [[ ${IS_DOCKER} == YES ]]; then
|
if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
# Remove build-dep for dotnet-sdk-8.0, since it's installed manually
|
# Remove build-dep for dotnet-sdk-8.0, since it's installed manually
|
||||||
|
@ -32,12 +32,12 @@ fi
|
||||||
# Build DEB
|
# Build DEB
|
||||||
dpkg-buildpackage -us -uc --pre-clean --post-clean
|
dpkg-buildpackage -us -uc --pre-clean --post-clean
|
||||||
|
|
||||||
mkdir -p ${ARTIFACT_DIR}/
|
mkdir -p "${ARTIFACT_DIR}/"
|
||||||
mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} ${ARTIFACT_DIR}/
|
mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
if [[ ${IS_DOCKER} == YES ]]; then
|
if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
cp -a /tmp/control.orig debian/control
|
cp -a /tmp/control.orig debian/control
|
||||||
chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
|
chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
if [[ ${IS_DOCKER} == YES ]]; then
|
if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
# Remove build-dep for dotnet-sdk-8.0, since it's installed manually
|
# Remove build-dep for dotnet-sdk-8.0, since it's installed manually
|
||||||
|
@ -33,12 +33,12 @@ fi
|
||||||
export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}
|
export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}
|
||||||
dpkg-buildpackage -us -uc -a arm64 --pre-clean --post-clean
|
dpkg-buildpackage -us -uc -a arm64 --pre-clean --post-clean
|
||||||
|
|
||||||
mkdir -p ${ARTIFACT_DIR}/
|
mkdir -p "${ARTIFACT_DIR}/"
|
||||||
mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} ${ARTIFACT_DIR}/
|
mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
if [[ ${IS_DOCKER} == YES ]]; then
|
if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
cp -a /tmp/control.orig debian/control
|
cp -a /tmp/control.orig debian/control
|
||||||
chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
|
chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
if [[ ${IS_DOCKER} == YES ]]; then
|
if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
# Remove build-dep for dotnet-sdk-8.0, since it's installed manually
|
# Remove build-dep for dotnet-sdk-8.0, since it's installed manually
|
||||||
|
@ -33,12 +33,12 @@ fi
|
||||||
export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}
|
export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}
|
||||||
dpkg-buildpackage -us -uc -a armhf --pre-clean --post-clean
|
dpkg-buildpackage -us -uc -a armhf --pre-clean --post-clean
|
||||||
|
|
||||||
mkdir -p ${ARTIFACT_DIR}/
|
mkdir -p "${ARTIFACT_DIR}/"
|
||||||
mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} ${ARTIFACT_DIR}/
|
mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
if [[ ${IS_DOCKER} == YES ]]; then
|
if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
cp -a /tmp/control.orig debian/control
|
cp -a /tmp/control.orig debian/control
|
||||||
chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
|
chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
if [[ ${IS_DOCKER} == YES ]]; then
|
if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
# Remove BuildRequires for dotnet, since it's installed manually
|
# Remove BuildRequires for dotnet, since it's installed manually
|
||||||
|
@ -39,10 +39,10 @@ make -f fedora/Makefile srpm outdir=/root/rpmbuild/SRPMS
|
||||||
rpmbuild -rb /root/rpmbuild/SRPMS/jellyfin-*.src.rpm
|
rpmbuild -rb /root/rpmbuild/SRPMS/jellyfin-*.src.rpm
|
||||||
|
|
||||||
# Move the artifacts out
|
# Move the artifacts out
|
||||||
mv /root/rpmbuild/RPMS/x86_64/jellyfin-*.rpm /root/rpmbuild/SRPMS/jellyfin-*.src.rpm ${ARTIFACT_DIR}/
|
mv /root/rpmbuild/RPMS/x86_64/jellyfin-*.rpm /root/rpmbuild/SRPMS/jellyfin-*.src.rpm "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
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}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f fedora/jellyfin*.tar.gz
|
rm -f fedora/jellyfin*.tar.gz
|
||||||
|
@ -51,7 +51,7 @@ if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
pushd fedora
|
pushd fedora
|
||||||
|
|
||||||
cp -a /tmp/spec.orig jellyfin.spec
|
cp -a /tmp/spec.orig jellyfin.spec
|
||||||
chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
|
chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"
|
||||||
|
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
# Get version
|
# Get version
|
||||||
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
||||||
|
@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_linux-amd64.tar.gz -C dist jellyfin-server_$
|
||||||
rm -rf dist/jellyfin-server_${version}
|
rm -rf dist/jellyfin-server_${version}
|
||||||
|
|
||||||
# Move the artifacts out
|
# Move the artifacts out
|
||||||
mkdir -p ${ARTIFACT_DIR}/
|
mkdir -p "${ARTIFACT_DIR}/"
|
||||||
mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/
|
mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
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}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
# Get version
|
# Get version
|
||||||
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
||||||
|
@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_linux-amd64-musl.tar.gz -C dist jellyfin-ser
|
||||||
rm -rf dist/jellyfin-server_${version}
|
rm -rf dist/jellyfin-server_${version}
|
||||||
|
|
||||||
# Move the artifacts out
|
# Move the artifacts out
|
||||||
mkdir -p ${ARTIFACT_DIR}/
|
mkdir -p "${ARTIFACT_DIR}/"
|
||||||
mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/
|
mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
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}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
# Get version
|
# Get version
|
||||||
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
||||||
|
@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_linux-arm64.tar.gz -C dist jellyfin-server_$
|
||||||
rm -rf dist/jellyfin-server_${version}
|
rm -rf dist/jellyfin-server_${version}
|
||||||
|
|
||||||
# Move the artifacts out
|
# Move the artifacts out
|
||||||
mkdir -p ${ARTIFACT_DIR}/
|
mkdir -p "${ARTIFACT_DIR}/"
|
||||||
mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/
|
mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
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}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
# Get version
|
# Get version
|
||||||
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
||||||
|
@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_linux-armhf.tar.gz -C dist jellyfin-server_$
|
||||||
rm -rf dist/jellyfin-server_${version}
|
rm -rf dist/jellyfin-server_${version}
|
||||||
|
|
||||||
# Move the artifacts out
|
# Move the artifacts out
|
||||||
mkdir -p ${ARTIFACT_DIR}/
|
mkdir -p "${ARTIFACT_DIR}/"
|
||||||
mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/
|
mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
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}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
# Get version
|
# Get version
|
||||||
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
||||||
|
@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_linux-arm64-musl.tar.gz -C dist jellyfin-ser
|
||||||
rm -rf dist/jellyfin-server_${version}
|
rm -rf dist/jellyfin-server_${version}
|
||||||
|
|
||||||
# Move the artifacts out
|
# Move the artifacts out
|
||||||
mkdir -p ${ARTIFACT_DIR}/
|
mkdir -p "${ARTIFACT_DIR}/"
|
||||||
mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/
|
mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
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}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
# Get version
|
# Get version
|
||||||
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
||||||
|
@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_macos-amd64.tar.gz -C dist jellyfin-server_$
|
||||||
rm -rf dist/jellyfin-server_${version}
|
rm -rf dist/jellyfin-server_${version}
|
||||||
|
|
||||||
# Move the artifacts out
|
# Move the artifacts out
|
||||||
mkdir -p ${ARTIFACT_DIR}/
|
mkdir -p "${ARTIFACT_DIR}/"
|
||||||
mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/
|
mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
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}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
# Get version
|
# Get version
|
||||||
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
||||||
|
@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_macos-arm64.tar.gz -C dist jellyfin-server_$
|
||||||
rm -rf dist/jellyfin-server_${version}
|
rm -rf dist/jellyfin-server_${version}
|
||||||
|
|
||||||
# Move the artifacts out
|
# Move the artifacts out
|
||||||
mkdir -p ${ARTIFACT_DIR}/
|
mkdir -p "${ARTIFACT_DIR}/"
|
||||||
mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/
|
mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
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}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
# Get version
|
# Get version
|
||||||
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
||||||
|
@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_portable.tar.gz -C dist jellyfin-server_${ve
|
||||||
rm -rf dist/jellyfin-server_${version}
|
rm -rf dist/jellyfin-server_${version}
|
||||||
|
|
||||||
# Move the artifacts out
|
# Move the artifacts out
|
||||||
mkdir -p ${ARTIFACT_DIR}/
|
mkdir -p "${ARTIFACT_DIR}/"
|
||||||
mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/
|
mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
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}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
if [[ ${IS_DOCKER} == YES ]]; then
|
if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
# Remove build-dep for dotnet-sdk-8.0, since it's installed manually
|
# Remove build-dep for dotnet-sdk-8.0, since it's installed manually
|
||||||
|
@ -32,12 +32,12 @@ fi
|
||||||
# Build DEB
|
# Build DEB
|
||||||
dpkg-buildpackage -us -uc --pre-clean --post-clean
|
dpkg-buildpackage -us -uc --pre-clean --post-clean
|
||||||
|
|
||||||
mkdir -p ${ARTIFACT_DIR}/
|
mkdir -p "${ARTIFACT_DIR}/"
|
||||||
mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} ${ARTIFACT_DIR}/
|
mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
if [[ ${IS_DOCKER} == YES ]]; then
|
if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
cp -a /tmp/control.orig debian/control
|
cp -a /tmp/control.orig debian/control
|
||||||
chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
|
chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
if [[ ${IS_DOCKER} == YES ]]; then
|
if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
# Remove build-dep for dotnet-sdk-8.0, since it's installed manually
|
# Remove build-dep for dotnet-sdk-8.0, since it's installed manually
|
||||||
|
@ -33,12 +33,12 @@ fi
|
||||||
export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}
|
export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}
|
||||||
dpkg-buildpackage -us -uc -a arm64 --pre-clean --post-clean
|
dpkg-buildpackage -us -uc -a arm64 --pre-clean --post-clean
|
||||||
|
|
||||||
mkdir -p ${ARTIFACT_DIR}/
|
mkdir -p "${ARTIFACT_DIR}/"
|
||||||
mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} ${ARTIFACT_DIR}/
|
mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
if [[ ${IS_DOCKER} == YES ]]; then
|
if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
cp -a /tmp/control.orig debian/control
|
cp -a /tmp/control.orig debian/control
|
||||||
chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
|
chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o errexit
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
if [[ ${IS_DOCKER} == YES ]]; then
|
if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
# Remove build-dep for dotnet-sdk-8.0, since it's installed manually
|
# Remove build-dep for dotnet-sdk-8.0, since it's installed manually
|
||||||
|
@ -33,12 +33,12 @@ fi
|
||||||
export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}
|
export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}
|
||||||
dpkg-buildpackage -us -uc -a armhf --pre-clean --post-clean
|
dpkg-buildpackage -us -uc -a armhf --pre-clean --post-clean
|
||||||
|
|
||||||
mkdir -p ${ARTIFACT_DIR}/
|
mkdir -p "${ARTIFACT_DIR}/"
|
||||||
mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} ${ARTIFACT_DIR}/
|
mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
if [[ ${IS_DOCKER} == YES ]]; then
|
if [[ ${IS_DOCKER} == YES ]]; then
|
||||||
cp -a /tmp/control.orig debian/control
|
cp -a /tmp/control.orig debian/control
|
||||||
chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
|
chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -11,7 +11,7 @@ NSSM_URL="http://files.evilt.win/nssm/${NSSM_VERSION}.zip"
|
||||||
FFMPEG_URL="https://repo.jellyfin.org/releases/server/windows/ffmpeg/jellyfin-ffmpeg-portable_win64.zip";
|
FFMPEG_URL="https://repo.jellyfin.org/releases/server/windows/ffmpeg/jellyfin-ffmpeg-portable_win64.zip";
|
||||||
|
|
||||||
# Move to source directory
|
# Move to source directory
|
||||||
pushd ${SOURCE_DIR}
|
pushd "${SOURCE_DIR}"
|
||||||
|
|
||||||
# Get version
|
# Get version
|
||||||
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
||||||
|
@ -42,11 +42,11 @@ popd
|
||||||
rm -rf ${output_dir}
|
rm -rf ${output_dir}
|
||||||
|
|
||||||
# Move the artifacts out
|
# Move the artifacts out
|
||||||
mkdir -p ${ARTIFACT_DIR}/
|
mkdir -p "${ARTIFACT_DIR}/"
|
||||||
mv dist/jellyfin[-_]*.zip ${ARTIFACT_DIR}/
|
mv dist/jellyfin[-_]*.zip "${ARTIFACT_DIR}/"
|
||||||
|
|
||||||
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}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Reference in a new issue