mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add build_id versioning to FC/COS builds
This commit is contained in:
parent
9e3d792f62
commit
1affef1208
2 changed files with 28 additions and 0 deletions
|
@ -8,6 +8,20 @@ pushd ${SOURCE_DIR}
|
||||||
|
|
||||||
cp -a yarn.lock /tmp/yarn.lock
|
cp -a yarn.lock /tmp/yarn.lock
|
||||||
|
|
||||||
|
# modify changelog to unstable configuration if IS_UNSTABLE
|
||||||
|
if [[ ${GIT_BRANCH} == 'refs/heads/package' ]]; then
|
||||||
|
pushd fedora/
|
||||||
|
# get the last PR ID
|
||||||
|
PR_ID=$( git log --grep 'Merge pull request' --oneline --single-worktree --first-parent | head -1 | grep --color=none -Eo '#[0-9]+' | tr -d '#' )
|
||||||
|
sed -i "/Version:.*/Version: ${BUILD_ID}"
|
||||||
|
sed -i "/%changelog/q" jellyfin-web.spec
|
||||||
|
cat <<EOF >>jellyfin-web.spec
|
||||||
|
* $( LANG=C date '+%a %b %d %Y' ) Jellyfin Packaging Team <packaging@jellyfin.org>
|
||||||
|
- Jellyfin Web unstable build ${BUILD_ID} for merged PR #${PR_ID}
|
||||||
|
EOF
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
# build rpm
|
# build rpm
|
||||||
make -f fedora/Makefile srpm outdir=/root/rpmbuild/SRPMS
|
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
|
||||||
|
|
|
@ -8,6 +8,20 @@ pushd ${SOURCE_DIR}
|
||||||
|
|
||||||
cp -a yarn.lock /tmp/yarn.lock
|
cp -a yarn.lock /tmp/yarn.lock
|
||||||
|
|
||||||
|
# modify changelog to unstable configuration if IS_UNSTABLE
|
||||||
|
if [[ ${GIT_BRANCH} == 'refs/heads/package' ]]; then
|
||||||
|
pushd fedora/
|
||||||
|
# get the last PR ID
|
||||||
|
PR_ID=$( git log --grep 'Merge pull request' --oneline --single-worktree --first-parent | head -1 | grep --color=none -Eo '#[0-9]+' | tr -d '#' )
|
||||||
|
sed -i "/Version:.*/Version: ${BUILD_ID}"
|
||||||
|
sed -i "/%changelog/q" jellyfin-web.spec
|
||||||
|
cat <<EOF >>jellyfin-web.spec
|
||||||
|
* $( LANG=C date '+%a %b %d %Y' ) Jellyfin Packaging Team <packaging@jellyfin.org>
|
||||||
|
- Jellyfin Web unstable build ${BUILD_ID} for merged PR #${PR_ID}
|
||||||
|
EOF
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
# build rpm
|
# build rpm
|
||||||
make -f fedora/Makefile srpm outdir=/root/rpmbuild/SRPMS
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue