Add first version of install-tangerineui.sh

This commit is contained in:
packetcat 2023-12-01 20:12:28 +00:00
parent 1bef7f4214
commit aa28dc08bd
1 changed files with 24 additions and 0 deletions

24
install-tangerineui.sh Normal file
View File

@ -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!"