Skip to content

Commit 66d9fde

Browse files
committed
Update Dockerfile and start.sh to support project branches and custom versions.
1 parent f8a4a74 commit 66d9fde

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

Docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM debian:stable-slim
22

3+
ENV JELLYFIN_WEB_BRANCH=release-10.9.z
4+
ENV JELLYFIN_TIZEN_BRANCH=master
35
ENV ACCEPT_TIZEN_STUDIO_LICENSE=0
46
ENV CertPass=12345
57
ENV TVIpAddress=192.168.1.2

Docker/start.sh

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,27 @@ fi
2626

2727
export PATH="${PATH}:/home/builder/tizen-studio/tools:/home/builder/tizen-studio/tools/ide/bin"
2828

29-
cd /home/builder/jellyfin-web
30-
echo "Pulling jellyfin-web!"
31-
git pull
29+
if [ $JELLYFIN_WEB_BRANCH == "_SKIP_" ]
30+
then
31+
echo "[jellyfin-tizen-builder] Skipping 'Pulling jellyfin-web!' step as JELLYFIN_WEB_BRANCH is set to $JELLYFIN_WEB_BRANCH."
32+
else
33+
cd /home/builder/jellyfin-web
34+
echo "Pulling jellyfin-web:$JELLYFIN_WEB_BRANCH!"
35+
git fetch
36+
git checkout -b $JELLYFIN_WEB_BRANCH origin/$JELLYFIN_WEB_BRANCH
37+
git pull
38+
fi
3239

33-
cd /home/builder/jellyfin-tizen
34-
echo "[jellyfin-tizen-builder] Pulling jellyfin-tizen!"
35-
git pull
40+
if [ $JELLYFIN_TIZEN_BRANCH == "_SKIP_" ]
41+
then
42+
echo "[jellyfin-tizen-builder] Skipping 'Pulling jellyfin-tizen!' step as JELLYFIN_TIZEN_BRANCH is set to $JELLYFIN_TIZEN_BRANCH."
43+
else
44+
cd /home/builder/jellyfin-tizen
45+
echo "Pulling jellyfin-tizen:$JELLYFIN_TIZEN_BRANCH!"
46+
git fetch
47+
git checkout -b $JELLYFIN_TIZEN_BRANCH origin/$JELLYFIN_TIZEN_BRANCH
48+
git pull
49+
fi
3650

3751
cd /home/builder/jellyfin-web
3852
echo "[jellyfin-tizen-builder] Installing jellyfin-web dependencies!"

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ docker run --rm \
4848
-e CertPass=YOUR_CERTs_PASSWORD \
4949
-e TVIpAddress=YOUR_TVs_IP_ADDRESS \
5050
-e ACCEPT_TIZEN_STUDIO_LICENSE=0 \
51+
-e JELLYFIN_WEB_BRANCH=release-10.9.z \
52+
-e JELLYFIN_TIZEN_BRANCH=master \
5153
-it jellyfin-tizen-builder:latest
5254

5355
```
@@ -56,6 +58,8 @@ docker run --rm \
5658
5759
> To accept the license, set the variable to 1.
5860
61+
> If you set the JELLYFIN\_\*\_BRANCH variables to \_SKIP\_, it will not try to pull files from GitHub repositories, enabling you to use your own custom versions.
62+
5963
If you see `Tizen application is successfully installed.` at the logs, congratulations! You now have your Jellyfin client installed on your TV. Go to `Apps > Settings > Jellyfin > Add to Home Screen` to have it appear on your home screen. Have fun!
6064

6165
## Notes

0 commit comments

Comments
 (0)