From aa28dc08bd1488982431fdf436dcd003356f8876 Mon Sep 17 00:00:00 2001 From: packetcat Date: Fri, 1 Dec 2023 20:12:28 +0000 Subject: [PATCH] Add first version of install-tangerineui.sh --- install-tangerineui.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 install-tangerineui.sh diff --git a/install-tangerineui.sh b/install-tangerineui.sh new file mode 100644 index 0000000..726e86e --- /dev/null +++ b/install-tangerineui.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +# This script installs the Tangerine UI theme. +# Author - packetcat + +# Tangerine UI repository directory +REPO="$HOME/TangerineUI-for-Mastodon" +# Mastodon install directory +INSTALLDIR="$HOME/live" + +# Clone Tangerine UI repository if it doesn't exist + +if [ -d "$REPO" ]; then + git clone https://github.com/nileane/TangerineUI-for-Mastodon.git $REPO +fi + +# Copy Tangerine UI files into your Mastodon install's styles directory +cp -vr $REPO/mastodon/app/javascript/styles/* $INSTALLDIR/app/javascript/styles + +# Copy our themes.yml (Comment this out if you don't want to use this) +cp -v $REPO/mastodon/config/themes.yml $INSTALLDIR/config/themes.yml + +cd $INSTALLDIR +RAILS_ENV=production bundle exec rails assets:precompile && echo "ALl done! Restart Mastodon processes for the changes to take effect!" +