revenge-tweak/README.md

61 lines
3.7 KiB
Markdown
Raw Normal View History

2024-03-15 08:10:25 +08:00
> [!NOTE]
> This tweak was desperately forked from VendettaTweak. I may not have the expertise to maintain or expand this tweak beyond its current state
2024-02-06 23:47:40 +00:00
2024-03-15 08:10:25 +08:00
# PyoncordTweak
2023-11-11 21:23:30 +02:00
2024-03-26 02:25:29 +01:00
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.
2023-11-11 21:23:30 +02:00
## Installation
2024-03-26 02:25:29 +01:00
Builds can be found in the [Actions](https://github.com/pyoncord/PyoncordTweak/actions/workflows/build.yml) tab.
2023-11-11 23:38:48 +02:00
### Jailbroken (Rootful/Rootless)
2024-03-26 02:25:29 +01:00
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.
2023-11-11 23:38:48 +02:00
### Non-Jailbroken
2024-03-26 02:25:29 +01:00
1. Download and install `Pyoncord.ipa` using your preferred sideloading method.
2023-11-11 23:38:48 +02:00
2024-03-15 08:10:25 +08:00
## Building PyoncordTweak locally
2023-11-11 23:38:48 +02:00
2024-03-15 08:10:25 +08:00
> [!NOTE]
2023-11-11 23:38:48 +02:00
> These steps assume you use MacOS.
1. Install Xcode from the App Store. If you've previously installed the `Command Line Utilities` package, you will need to run `sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer` to make sure you're using the Xcode tools instead.
> If you want to revert the `xcode-select` change, run `sudo xcode-select -switch /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk`
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/).
2024-03-15 08:10:25 +08:00
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.
2023-11-11 23:38:48 +02:00
```bash
export PATH="$(brew --prefix make)/libexec/gnubin:$PATH"
# feel free to set whatever path you want, but it needs to be a direct path, without relative parts
export THEOS="/Users/vendetta/IPA/theos"
```
4. Setup [theos](https://theos.dev/docs/installation-macos) by running the script provided by theos.
```bash
bash -c "$(curl -fsSL https://raw.githubusercontent.com/theos/theos/master/bin/install-theos)"
```
If you've already installed theos, you can run `$THEOS/bin/update-theos` to make sure it's up to date.
2024-03-15 08:10:25 +08:00
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.
2023-11-11 23:38:48 +02:00
2024-03-15 08:10:25 +08:00
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).
2023-11-11 23:38:48 +02:00
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
2024-03-15 08:10:25 +08:00
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.
2023-11-11 23:38:48 +02:00
<!-- @vladdy was here, battling all these steps so you don't have to. Have fun! :3 -->