diff options
Diffstat (limited to 'rpm/docker/build.sh')
-rwxr-xr-x | rpm/docker/build.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/rpm/docker/build.sh b/rpm/docker/build.sh new file mode 100755 index 0000000..87a2bc9 --- /dev/null +++ b/rpm/docker/build.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +#= .rpm builder + +set -o errexit +set -o xtrace + +# Move to source directory +pushd "${SOURCE_DIR}" + +# Build DEB +if [[ ${ARCH} != $( uname -m ) ]]; then + #export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH} + export CONFIG_CROSS="-a ${ARCH}" +fi +#find . -iname 'jellyfin.spec' +#pwd +find . -maxdepth 4 -type d ! -ipath '*/node_modules/*' -exec ls -aldF --color=always {} + +mkdir -p ~/rpmbuild/RPMS ~/rpmbuild/SRPMS ~/rpmbuild/SOURCES ~/rpmbuild/SPECS +tar -zcf ~/"rpmbuild/SOURCES/jellyfin-web-${JELLYFIN_VERSION}.tar.gz" jellyfin-web +tar -zcf ~/"rpmbuild/SOURCES/jellyfin-${JELLYFIN_VERSION}.tar.gz" jellyfin-server +cp -pf rpm/*.* ~/"rpmbuild/SOURCES/" +rpmbuild -ba rpm/jellyfin.spec --define="jversion ${JELLYFIN_VERSION}" + +mkdir -p "${ARTIFACT_DIR}/" +mv ~/rpmbuild/RPMS/${ARCH}/*rpm ~/rpmbuild/SRPMS/*rpm "${ARTIFACT_DIR}/" + +popd |