GoonCord/README.md

35 lines
1.8 KiB
Markdown
Raw Normal View History

2024-04-30 22:40:03 +08:00
# Bunny ![Discord](https://img.shields.io/discord/1196075698301968455?style=social&logo=discord&label=%20&link=https%3A%2F%2Fdiscord.gg%2FXjYgWXHb9Q)
A mod for Discord's mobile apps, a fork of [Vendetta](https://github.com/vendetta-mod/Vendetta/).
2023-02-01 18:40:11 +00:00
## Installing
### Android
2023-02-01 18:40:11 +00:00
2024-04-30 23:13:01 +08:00
- **Root** with Xposed - [BunnyXposed](https://github.com/pyoncord/BunnyXposed/releases/latest)
- **Non-root** - [BunnyManager](https://github.com/pyoncord/BunnyManager/releases/latest)
2024-04-30 22:40:03 +08:00
### iOS
- [**BunnyTweak**](https://github.com/pyoncord/BunnyTweak) - Get prebuilt rootful and rootless `.deb` files or the prepatched `.ipa `
2024-03-01 14:25:43 +08:00
## Building
1. Install a Bunny loader with loader config support (any mentioned in the [Installing](#installing) section).
2024-04-30 22:40:03 +08:00
1. Go to Settings > General and enable Developer Settings.
1. Clone the repo:
2024-03-01 14:25:43 +08:00
```
git clone https://github.com/pyoncord/Bunny
```
2024-04-30 22:40:03 +08:00
1. Install dependencies:
2024-03-01 14:25:43 +08:00
```
pnpm i
```
2024-04-30 22:40:03 +08:00
1. Build Bunny's code:
2024-03-01 14:25:43 +08:00
```
pnpm build
```
2024-04-30 22:40:03 +08:00
1. In the newly created `dist` directory, run a HTTP server. I recommend [http-server](https://www.npmjs.com/package/http-server).
1. Go to Settings > Developer enabled earlier. Enable `Load from custom url` and input the IP address and port of the server (e.g. `http://192.168.1.236:4040/bunny.js`) in the new input box labelled `Bunny URL`.
1. Restart Discord. Upon reload, you should notice that your device will download Bunny's bundled code from your server, rather than GitHub.
1. Make your changes, rebuild, reload, go wild!
2024-03-01 14:25:43 +08:00
2024-04-30 22:40:03 +08:00
Alternatively, you can directly *serve* the bundled code by running `pnpm serve`. `bunny.js` will be served on your local address under the port 4040. You will then insert `http://<local ip address>:4040/bunny.js` as a custom url and reload. Whenever you restart your mobile client, the script will rebuild the bundle as your client fetches it.