GoonCord/README.md

43 lines
2 KiB
Markdown
Raw Normal View History

2024-09-15 19:29:54 +07:00
# Revenge [![Discord](https://img.shields.io/discord/1205207689832038522?style=social&logo=discord&label=Revenge)]([https://discord.gg/24Ue3pzaum])
A modification for Discord's mobile apps, a fork of [Bunny](https://github.com/pyoncord/Bunny).
2023-02-01 18:40:11 +00:00
## Installing
### Android
2023-02-01 18:40:11 +00:00
2024-09-15 19:29:54 +07:00
- **Root** with Xposed - [RevengeXposed](https://github.com/revenge-mod/RevengeXposed/releases/latest)
- **Non-root** - [Revenge Manager](https://github.com/revenge-mod/RevengeManager/releases/latest)
2024-04-30 22:40:03 +08:00
### iOS
2024-09-15 19:29:54 +07:00
- [**RevengeTweak**](https://github.com/revenge-mod/RevengeTweak) - Get prebuilt rootful and rootless `.deb` files or the prepatched `.ipa `
2024-03-01 14:25:43 +08:00
## Building
2024-09-15 19:29:54 +07:00
1. Install a Revenge loader with config support (any mentioned in the [Installing](#installing) section).
2. Go to **Settings** > **General** and enable **Developer Settings**.
3. Clone the repository
```sh
git clone https://github.com/revenge-mod/Revenge.git
2024-03-01 14:25:43 +08:00
```
2024-09-15 19:29:54 +07:00
4. Install dependencies
2024-03-01 14:25:43 +08:00
```
pnpm i
```
2024-09-15 19:29:54 +07:00
5. Build Revenge's code
2024-03-01 14:25:43 +08:00
```
pnpm build
```
2024-09-15 19:29:54 +07:00
6. In the newly created `dist` directory, run a HTTP server. I recommend [http-server](https://www.npmjs.com/package/http-server).
7. 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/revenge.js`) in the new input box labeled `Revenge URL`.
8. Restart Discord. Upon reload, you should notice that your device will download Revenge's bundled code from your server, rather than GitHub.
9. Make your changes, rebuild, reload, go wild!
Alternatively, you can directly *serve* the bundled code by running `pnpm serve`. `revenge.js` will be served on your local address under the port 4040. You will then insert `http://<local ip address>:4040/revenge.js` as a custom URL and reload. Whenever you restart your mobile client, the script will rebuild the bundle as your client fetches it.
If the bundle keeps being cached and not updated, you can instead tap the **Settings** > **Developer** > **Clear JS bundle** option which will prompt you to reload.