Patches for my Mastodon instance
-
Clone this repository and my Mastodon fork
-
For the mastodon fork, sync tags from upstream to fork
git remote add upstream https://github.com/mastodon/mastodon.git
git fetch --tags upstream
git push --tags
-
For the mastodon fork, checkout the tag for the version you want to publish, e.g.
git checkout v4.1.6
-
For the mastodon fork, checkout and switch to a new branch for the version, e.g.
git switch -c kt-4.1.6
-
Open the mastodon fork in VSCode as devcontainer
-
Use
MASTODON_PATH=/path/to/mastodon-fork ./apply-code-patches.sh
in this repository to apply patches from previous version -
To update an existing feature or develop a new feature
-
Change code in the mastodon fork
-
Use
bin/dev
to start -
The web UI is located at
http://localhost:3000
. Use usernameadmin@localhost
and passwordmastodonadmin
. -
To revert all code patches in the mastodon fork, use
MASTODON_PATH=/path/to/mastodon-fork ./revert-code-patches.sh
-
To commit the current state of the mastodon fork to a diff, use
MASTODON_PATH=/path/to/mastodon-fork ./commit-code-patch.sh
-
-
After all features have been done, commit and push all changes
git add --all git commit -m "kt 4.1.6" --no-verify git push origin kt-4.2.7-2 --no-verify
-
Create a new release here
-
Tag should be
vx.y.z+kt
, e.g.v4.1.6+kt
-
Target should be the branch for the version, e.g.
kt-4.1.6