Mastodon customisations for queer.party
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.3KB

  1. #!/bin/sh
  2. if [ "x$1" != "x" ]; then MASTODON_VERSION=$1; fi
  3. if [ "x$MASTODON_VERSION" == "x" ]; then
  4. echo "Please specify a version as the first argument or via env. var. MASTODON_VERSION">/dev/stderr
  5. exit 1
  6. fi
  7. git clone https://git.maff.scot/mirrors/mastodon untainted
  8. cd untainted
  9. git fetch --all --tags
  10. git checkout tags/v$MASTODON_VERSION
  11. cd ..
  12. cp -pr untainted tainted
  13. mkdir modifications
  14. git clone https://github.com/meemudotorg/theemu modifications/theemu
  15. rsync -av --files-from modifications/theemu/meemu-theme.txt modifications/theemu tainted
  16. cp -pr untainted/app/javascript/mastodon/locales/en.json tainted/app/javascript/mastodon/locales/en.json
  17. cp -pr untainted/config/locales/en.yml tainted/config/locales/en.yml
  18. cp -pr assets/themes.yml tainted/config/themes.yml
  19. cp -pr assets/source.rb tainted/config/initializers/source.rb
  20. mv tainted/app/javascript/fonts/pressstart2p deploy/
  21. diff -ruN untainted tainted > deploy/queer.party.patch
  22. rm -rf untainted tainted modifications
  23. docker build --build-arg MASTODON_VERSION=$MASTODON_VERSION -t maffsie/qp-mastodon:latest -t maffsie/qp-mastodon:v$MASTODON_VERSION deploy/
  24. rm -rf deploy/queer.party.patch deploy/pressstart2p
  25. if [ "x$NOPUSH" == "x" -a -f ~/.docker/config.json ]; then docker push maffsie/qp-mastodon:v$MASTODON_VERSION;docker push maffsie/qp-mastodon:latest; fi