This repository contains Rayward's patches to Sunbird, which go into the runtime of the patched Discord app that Rayward for Discord runs in, and they are licensed under the EUPL-1.2 (see LICENSE). Each tag is one release and has the source it was built from, and every commit here is made by Rayward's publish workflow. The source download is upstream Sunbird's EUPL-1.2 code with all of its notices, and the files in patches/ are Rayward's changes to it.
UPSTREAMhas the Sunbird repository URL and the commit the patches apply to.patches/contains the patch series, in the order you apply it.- Each release on GitHub has a download of the Sunbird source at that commit.
build.shbuilds the runtime from a patched checkout, andbuild.envhas the values the release was built with.
Rayward for Discord is a safety plugin that shows community flags for Discord accounts and the Roblox accounts linked to them. The patches add the plugin features and app behavior it needs, like indicators next to names and messages, a settings page for the plugin and in-app updates for Rayward's builds.
These changes are for Rayward's own needs rather than for Sunbird users in general, so Rayward keeps them as a separate patch series and publishes it with each release. Rayward is not part of Sunbird or Discord, and neither of them endorses this work.
read -r url commit < UPSTREAM
git clone "$url" sunbird
git -C sunbird checkout -b rayward "$commit"
git -C sunbird am "$PWD"/patches/*.patchTo start from that download instead, unpack it, commit its files to a new Git repository and run the same git am there.
The build runs inside Sunbird's nix develop shell, so you need Nix with flakes enabled.
set -a && . ./build.env && set +a
./build.sh sunbirdThe Android loaders end up in sunbird/target/<target>/release/libphoenix.so, and the web patcher ends up in
sunbird/target/rayward-web/.