Initialer Commit
This commit is contained in:
Executable
+52
@@ -0,0 +1,52 @@
|
||||
#!/bin/bash
|
||||
|
||||
#jellyfin-web neu clonen
|
||||
cd ../
|
||||
rm -rf jellyfin-web
|
||||
echo "jellyfin-web gelöscht"
|
||||
#git clone https://github.com/jellyfin/jellyfin-web
|
||||
git clone --branch master --single-branch https://github.com/jellyfin/jellyfin-web
|
||||
echo "jellyfin-web geklont"
|
||||
cd webbranding
|
||||
|
||||
#Dateien runterladen (frischer Stand und so)
|
||||
wget -q https://raw.githubusercontent.com/jellyfin/jellyfin-web/master/src/scripts/libraryMenu.js -O scripts/libraryMenu.js
|
||||
wget -q https://raw.githubusercontent.com/jellyfin/jellyfin-web/master/src/index.html -O index.html
|
||||
|
||||
#Custom Links einfügen
|
||||
sed -i '/class="customMenuOptions"/d' scripts/libraryMenu.js
|
||||
sed -i '/placeholder for custom menu links/r vorlagen/custom_links_insert' scripts/libraryMenu.js
|
||||
|
||||
#custom Titel
|
||||
sed -i "s/document\.title = 'Jellyfin'/document\.title = 'Chicanoflix'/g" scripts/libraryMenu.js
|
||||
sed -i "s/document\.title = title || 'Jellyfin'/document\.title = title || 'Chicanoflix'/g" scripts/libraryMenu.js
|
||||
|
||||
#index.html anpassen
|
||||
sed -i "s|content=\"https://jellyfin.org\"|content=\"https://fc-chicanos.de\"|g" index.html
|
||||
sed -i "s/content=\"Jellyfin\"/content=\"Chicanoflix\"/g" index.html
|
||||
sed -i "s|content=\"The Free Software Media System\"|content=\"Chicanoflix und Chill\"|g" index.html
|
||||
sed -i "s|<title>Jellyfin</title>|<title>Chicanoflix</title>|g" index.html
|
||||
sed -i '/<div class="mainDrawerHandle">/r vorlagen/index.manuell' index.html
|
||||
|
||||
#Bilder in Projekt-Ordner kopieren
|
||||
cp assets/img/* ../jellyfin-web/src/assets/img/
|
||||
cp assets/splash/* ../jellyfin-web/src/assets/splash/
|
||||
|
||||
#customLinks-Datei und index.html kopieren
|
||||
cp scripts/libraryMenu.js ../jellyfin-web/src/scripts/
|
||||
cp index.html ../jellyfin-web/src/
|
||||
|
||||
#tv-Oberfläche
|
||||
cp components/CustomCss.tsx ../jellyfin-web/src/components/
|
||||
|
||||
#favicons kopieren
|
||||
cp root/* ../jellyfin-web/src/
|
||||
|
||||
#build ausführen?
|
||||
read -p "Build ausführen?" yn
|
||||
case $yn in
|
||||
[Yy]* ) cd ../jellyfin-web;npm install; npm run build:production;;
|
||||
[Nn]* ) exit;;
|
||||
* ) echo "Bitte y oder n eingeben.";;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user