Skip to content

Commit

Permalink
#1 Couldn't fetch ffmpeg latest version
Browse files Browse the repository at this point in the history
Signed-off-by: pdulvp <[email protected]>
  • Loading branch information
pdulvp committed Jan 5, 2022
1 parent ef6c969 commit 830dbe9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions fetch-stable-pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

PRE_SERVER_VERSION=`wget https://repo.jellyfin.org/releases/server/debian/stable-pre/ -q -O- | grep -o -P "([a-z0-9\-\.]+)(?=/server)" | head -1`
PRE_WEB_VERSION=`wget https://repo.jellyfin.org/releases/server/debian/stable-pre/ -q -O- | grep -o -P "([a-z0-9\-\.]+)(?=/web)" | head -1`
PRE_FFMPEG_VERSION=`wget https://repo.jellyfin.org/releases/server/debian/ffmpeg/ -q -O- | grep -o -P "([a-z0-9\-\.]+)(?=-bullseye_amd64.buildinfo)" | head -n 1`
PRE_FFMPEG_VERSION=`wget https://repo.jellyfin.org/releases/server/debian/stable-pre/ -q -O- | grep -o -P "([a-z0-9\-\.]+)(?=/ffmpeg)" | head -n 1`

SERVER_VERSION=`wget https://repo.jellyfin.org/releases/server/debian/stable-pre/$PRE_SERVER_VERSION/server/ -q -O- | grep -o -P "([a-z0-9\-\.]+)(?=.dsc)" | head -n 1`
echo "SERVER_VERSION=$SERVER_VERSION"
WEB_VERSION=`wget https://repo.jellyfin.org/releases/server/debian/stable-pre/$PRE_SERVER_VERSION/web/ -q -O- | grep -o -P "([a-z0-9\-\.]+)(?=.dsc)" | head -n 1`
echo "WEB_VERSION=$WEB_VERSION"
FFMPEG_VERSION=`wget https://repo.jellyfin.org/releases/server/debian/ffmpeg/ -q -O- | grep -o -P "([a-z0-9\-\.]+)(?=-bullseye_amd64.buildinfo)" | head -n 1`
FFMPEG_VERSION=`wget https://repo.jellyfin.org/releases/server/debian/stable-pre/ffmpeg/ -q -O- | grep -o -P "([a-z0-9\-\.]+)(?=-bullseye_amd64.buildinfo)" | head -n 1`
echo "FFMPEG_VERSION=$FFMPEG_VERSION"

CURRENT_VERSION=`cat package.json | grep -o -P "(?<=\"preversion\"\: \").*([\d\.])+"`
Expand All @@ -17,7 +17,7 @@ echo "CURRENT_VERSION=$CURRENT_VERSION"
echo "CURRENT_SHA=$CURRENT_SHA"

rm -f *.sha256sum
wget -q "https://repo.jellyfin.org/releases/server/debian/ffmpeg/jellyfin-ffmpeg_"$FFMPEG_VERSION"-bullseye_amd64.deb.sha256sum"
wget -q "https://repo.jellyfin.org/releases/server/debian/stable-pre/ffmpeg/jellyfin-ffmpeg_"$FFMPEG_VERSION"-bullseye_amd64.deb.sha256sum"
wget -q "https://repo.jellyfin.org/releases/server/debian/stable-pre/$PRE_SERVER_VERSION/server/jellyfin-server_"$SERVER_VERSION"_amd64.deb.sha256sum"
wget -q "https://repo.jellyfin.org/releases/server/debian/stable-pre/$PRE_SERVER_VERSION/web/jellyfin-web_"$WEB_VERSION"_all.deb.sha256sum"

Expand All @@ -39,7 +39,7 @@ rm -f jellyfin-ffmpeg_*.deb*

wget -q "https://repo.jellyfin.org/releases/server/debian/stable-pre/$PRE_SERVER_VERSION/server/jellyfin-server_"$SERVER_VERSION"_amd64.deb"
wget -q "https://repo.jellyfin.org/releases/server/debian/stable-pre/$PRE_SERVER_VERSION/web/jellyfin-web_"$WEB_VERSION"_all.deb"
wget -q "https://repo.jellyfin.org/releases/server/debian/ffmpeg/jellyfin-ffmpeg_"$FFMPEG_VERSION"-bullseye_amd64.deb"
wget -q "https://repo.jellyfin.org/releases/server/debian/stable-pre/ffmpeg/jellyfin-ffmpeg_"$FFMPEG_VERSION"-bullseye_amd64.deb"

sed -i "s/^QPKG_VER=.*$/QPKG_VER=\"$PRE_SERVER_VERSION\"/" jellyfin/qpkg.cfg

Expand Down
6 changes: 3 additions & 3 deletions fetch-stable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVER_VERSION=`wget https://repo.jellyfin.org/releases/server/debian/stable/ser
echo "SERVER_VERSION=$SERVER_VERSION"
WEB_VERSION=`wget https://repo.jellyfin.org/releases/server/debian/stable/web/ -q -O- | grep -o -P "([a-z0-9\-\.]+)(?=.dsc)" | head -n 1`
echo "WEB_VERSION=$WEB_VERSION"
FFMPEG_VERSION=`wget https://repo.jellyfin.org/releases/server/debian/ffmpeg/ -q -O- | grep -o -P "([a-z0-9\-\.]+)(?=-bullseye_amd64.buildinfo)" | head -n 1`
FFMPEG_VERSION=`wget https://repo.jellyfin.org/releases/server/debian/stable/ffmpeg/ -q -O- | grep -o -P "([a-z0-9\-\.]+)(?=-bullseye_amd64.buildinfo)" | head -n 1`
echo "FFMPEG_VERSION=$FFMPEG_VERSION"

CURRENT_VERSION=`cat package.json | grep -o -P "(?<=\"version\"\: \").*([\d\.])+"`
Expand All @@ -13,7 +13,7 @@ echo "CURRENT_VERSION=$CURRENT_VERSION"
echo "CURRENT_SHA=$CURRENT_SHA"

rm -f *.sha256sum
wget -q "https://repo.jellyfin.org/releases/server/debian/ffmpeg/jellyfin-ffmpeg_"$FFMPEG_VERSION"-bullseye_amd64.deb.sha256sum"
wget -q "https://repo.jellyfin.org/releases/server/debian/stable/ffmpeg/jellyfin-ffmpeg_"$FFMPEG_VERSION"-bullseye_amd64.deb.sha256sum"
wget -q "https://repo.jellyfin.org/releases/server/debian/stable/server/jellyfin-server_"$SERVER_VERSION"_amd64.deb.sha256sum"
wget -q "https://repo.jellyfin.org/releases/server/debian/stable/web/jellyfin-web_"$WEB_VERSION"_all.deb.sha256sum"

Expand All @@ -34,7 +34,7 @@ rm -f jellyfin-ffmpeg_*.deb*

wget -q "https://repo.jellyfin.org/releases/server/debian/stable/server/jellyfin-server_"$SERVER_VERSION"_amd64.deb"
wget -q "https://repo.jellyfin.org/releases/server/debian/stable/web/jellyfin-web_"$WEB_VERSION"_all.deb"
wget -q "https://repo.jellyfin.org/releases/server/debian/ffmpeg/jellyfin-ffmpeg_"$FFMPEG_VERSION"-bullseye_amd64.deb"
wget -q "https://repo.jellyfin.org/releases/server/debian/stable/ffmpeg/jellyfin-ffmpeg_"$FFMPEG_VERSION"-bullseye_amd64.deb"

sed -i "s/^QPKG_VER=.*$/QPKG_VER=\"$SERVER_VERSION\"/" jellyfin/qpkg.cfg

Expand Down
1 change: 1 addition & 0 deletions push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# $4=FILE
# $5=PRERELEASE

echo $*
git pull bot HEAD
git config user.email "[email protected]"
git config user.name "pdulvp-bot"
Expand Down

0 comments on commit 830dbe9

Please sign in to comment.