Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sunbird patches

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.

  • UPSTREAM has 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.sh builds the runtime from a patched checkout, and build.env has the values the release was built with.

Why these patches exist

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.

Apply the patches

read -r url commit < UPSTREAM
git clone "$url" sunbird
git -C sunbird checkout -b rayward "$commit"
git -C sunbird am "$PWD"/patches/*.patch

To start from that download instead, unpack it, commit its files to a new Git repository and run the same git am there.

Build

The build runs inside Sunbird's nix develop shell, so you need Nix with flakes enabled.

set -a && . ./build.env && set +a
./build.sh sunbird

The Android loaders end up in sunbird/target/<target>/release/libphoenix.so, and the web patcher ends up in sunbird/target/rayward-web/.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages