Skip to content

Commit

Permalink
Bunny-fication
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixonly committed Apr 30, 2024
1 parent 639c0e8 commit ab2aa52
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# PyoncordTweak
# BunnyTweak

A rootful/rootless tweak to inject [Pyoncord](https://github.com/pyoncord/Pyoncord) into Discord. Forked [VendettaTweak](https://github.com/vendetta-mod/VendettaTweak), modified to match with [PyoncordXposed](https://github.com/pyoncord/PyoncordXposed) behavior. There are still slight differences between these two, and this tweak may be missing some loader features.
A rootful/rootless tweak to inject [Bunny](https://github.com/pyoncord/Bunny) into Discord. Forked [VendettaTweak](https://github.com/vendetta-mod/VendettaTweak), modified to match with [BunnyXposed](https://github.com/pyoncord/BunnyXposed) behavior. There are still slight differences between these two, and this tweak may be missing some loader features.

## Installation

Builds can be found in the [Releases](https://github.com/pyoncord/PyoncordTweak/releases/latest) tab.
Builds can be found in the [Releases](https://github.com/pyoncord/BunnyTweak/releases/latest) tab.

### Jailbroken (Rootful/Rootless)

1. Install the Orion runtime via your preferred package manager, by adding `https://repo.chariz.com/` to your sources, then finding `Orion Runtime`.
1. Install Pyoncord by downloading the appropriate `.deb` file (or by building your own, see [Building PyoncordTweak locally](#building-pyoncordtweak-locally)). Use the file ending in `arm.deb` for rootful jailbreaks, and the file ending in `arm64.deb` for rootless jailbreaks.
1. Install Bunny by downloading the appropriate `.deb` file (or by building your own, see [Building BunnyTweak locally](#building-pyoncordtweak-locally)). Use the file ending in `arm.deb` for rootful jailbreaks, and the file ending in `arm64.deb` for rootless jailbreaks.

### Non-Jailbroken
<a href="https://tinyurl.com/yh455zk6"><img src="https://i.imgur.com/46qhEAv.png" width="230"></a>
1. Download and install `Pyoncord.ipa` using your preferred sideloading method.

## Building PyoncordTweak locally
## Building BunnyTweak locally

> [!NOTE]
> These steps assume you use MacOS.
Expand All @@ -26,7 +26,7 @@ Builds can be found in the [Releases](https://github.com/pyoncord/PyoncordTweak/
2. Install the required dependencies. You can do this by running `brew install make ldid` in your terminal. If you do not have brew installed, follow the instructions [here](https://brew.sh/).

3. Setup your path accordingly. We recommend you run the following before running the next commands, as well as any time you want to build PyoncordTweak.
3. Setup your path accordingly. We recommend you run the following before running the next commands, as well as any time you want to build BunnyTweak.

```bash
export PATH="$(brew --prefix make)/libexec/gnubin:$PATH"
Expand All @@ -42,17 +42,17 @@ bash -c "$(curl -fsSL https://raw.githubusercontent.com/theos/theos/master/bin/i

If you've already installed theos, you can run `$THEOS/bin/update-theos` to make sure it's up to date.

5. Clone this repository with `git clone git@github.com:pyoncord/PyoncordTweak.git` and `cd` into it. Replace the URL with your fork if you've forked this repository.
5. Clone this repository with `git clone git@github.com:pyoncord/BunnyTweak.git` and `cd` into it. Replace the URL with your fork if you've forked this repository.

6. To build PyoncordTweak, you can run `rm -rf packages && make clean && make package FINALPACKAGE=1 && make package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless`. The first command will remove any previous packages, the second will clean the project, the third will build the rootful package (which is denoted by the `arm.deb` ending), and the fourth will build the rootless package (which is denoted by the `arm64.deb` ending).
6. To build BunnyTweak, you can run `rm -rf packages && make clean && make package FINALPACKAGE=1 && make package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless`. The first command will remove any previous packages, the second will clean the project, the third will build the rootful package (which is denoted by the `arm.deb` ending), and the fourth will build the rootless package (which is denoted by the `arm64.deb` ending).

The first time you run this, it might take a bit longer, but subsequent builds should be much faster.

The resulting `.deb` files will be in the `packages` folder. As a reminder, `*arm.deb` is for rootful jailbreaks and sideloading, and `*arm64.deb` is for rootless jailbreaks.

## Contributing

If you want to contribute, you will basically need to follow the steps for [Building PyoncordTweak locally](#building-pyoncordtweak-locally), as well as run `make spm` for the Swift LSP to work.
If you want to contribute, you will basically need to follow the steps for [Building BunnyTweak locally](#building-bunnytweak-locally), as well as run `make spm` for the Swift LSP to work.

<!-- @vladdy was here, battling all these steps so you don't have to. Have fun! :3 -->
<!-- @castdrian also was here simplifying these steps immensely -->
3 changes: 2 additions & 1 deletion Resources/payload-base.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
globalThis.__PYON_LOADER__ = {
loaderName: "PyoncordTweak",
loaderName: "BunnyTweak",
loaderVersion: "0.2.0",
hasThemeSupport: true,
storedTheme: null
}
2 changes: 1 addition & 1 deletion app-repo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"iconURL": "https://pyoncord.github.io/assets/icon-altstore.png",
"apps": [
{
"name": "Pyoncord",
"name": "Bunny",
"bundleIdentifier": "com.hammerandchisel.discord",
"developerName": "Pylix",
"iconURL": "https://pyoncord.github.io/assets/icon-altstore.png",
Expand Down
4 changes: 2 additions & 2 deletions control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: io.github.pyoncord.app
Name: pyoncord
Version: 0.1.0
Name: Bunny
Version: 0.2.0
Architecture: iphoneos-arm
Description: A mod for Discord's mobile apps.
Maintainer: Pylix
Expand Down

0 comments on commit ab2aa52

Please sign in to comment.