mirror of
https://github.com/MorpheApp/morphe-documentation.git
synced 2026-11-30 23:19:34 +00:00
chore: Update morphe-cli to morphe-desktop
This commit is contained in:
1 parent
e3b88d0195
commit
37b5eeb9c6
3 files changed
+24
-24
No files matched your search
@@ -11,7 +11,7 @@ Collection of all Morphe documentation.
|
|||||||
|
|
||||||
|
|
||||||
## Patching with Morphe
|
## Patching with Morphe
|
||||||
- [💻 Using Morphe CLI](https://github.com/MorpheApp/morphe-cli/blob/main/docs/README.md): Using Morphe CLI with a computer
|
- [💻 Using Morphe Desktop](https://github.com/MorpheApp/morphe-desktop/blob/main/docs/README.md): Using Morphe Desktop with a computer
|
||||||
- [📱 Using Morphe Manager](https://github.com/MorpheApp/morphe-manager): Documentation is coming soon!
|
- [📱 Using Morphe Manager](https://github.com/MorpheApp/morphe-manager): Documentation is coming soon!
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ A certain development environment is suggested to allow for streamlined developm
|
|||||||
https://github.com/morpheapp/morphe-patches-template
|
https://github.com/morpheapp/morphe-patches-template
|
||||||
Read the readme notes in https://github.com/morpheapp/morphe-patches-template for additional instructions.
|
Read the readme notes in https://github.com/morpheapp/morphe-patches-template for additional instructions.
|
||||||
|
|
||||||
1. **Clone your forked patches template repository, and CLI required to patch using the console**
|
1. **Clone your forked patches template repository, and Desktop required to patch using the console**
|
||||||
|
|
||||||
Replace `MyGitHubUserAccount` with your GitHub username.
|
Replace `MyGitHubUserAccount` with your GitHub username.
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@ Read the readme notes in https://github.com/morpheapp/morphe-patches-template fo
|
|||||||
mkdir morphe
|
mkdir morphe
|
||||||
cd morphe
|
cd morphe
|
||||||
|
|
||||||
git clone -b dev https://github.com/MorpheApp/morphe-cli
|
git clone -b dev https://github.com/MorpheApp/morphe-desktop
|
||||||
git clone -b dev https://github.com/MyGitHubUserAccount/morphe-patches-template
|
git clone -b dev https://github.com/MyGitHubUserAccount/morphe-patches-template
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ Read the readme notes in https://github.com/morpheapp/morphe-patches-template fo
|
|||||||
To build patches:
|
To build patches:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd morphe-cli
|
cd morphe-desktop
|
||||||
./gradlew build
|
./gradlew build
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
@@ -46,13 +46,13 @@ Read the readme notes in https://github.com/morpheapp/morphe-patches-template fo
|
|||||||
> ```
|
> ```
|
||||||
|
|
||||||
|
|
||||||
## ⌨️ Simple terminal patching with CLI and custom patches
|
## ⌨️ Simple terminal patching with Desktop and custom patches
|
||||||
|
|
||||||
Copy paste the following to terminal, or add all of this to a script file:
|
Copy paste the following to terminal, or add all of this to a script file:
|
||||||
```bash
|
```bash
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd morphe-cli
|
cd morphe-desktop
|
||||||
./gradlew build
|
./gradlew build
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ rm patches/build/libs/patches*.mpp
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# replace $1 with your input apk if not using a bash script
|
# replace $1 with your input apk if not using a bash script
|
||||||
java -Xms1024m -jar morphe-cli/build/libs/morphe-cli*-all.jar patch --patches morphe-patches-template/patches/build/libs/patches*.mpp --out morphe.apk $1 --install
|
java -Xms1024m -jar morphe-desktop/build/libs/morphe-desktop*-all.jar patch --patches morphe-patches-template/patches/build/libs/patches*.mpp --out morphe.apk $1 --install
|
||||||
```
|
```
|
||||||
|
|
||||||
Then run using: `./patch input.apk` where `input.apk` is the unmodified apk you are patching.
|
Then run using: `./patch input.apk` where `input.apk` is the unmodified apk you are patching.
|
||||||
@@ -73,29 +73,29 @@ Then run using: `./patch input.apk` where `input.apk` is the unmodified apk you
|
|||||||
### ⚠️ Warning: Intellij complexity ahead
|
### ⚠️ Warning: Intellij complexity ahead
|
||||||
If setting up Intellij in this way is to complex for your liking, then consider using the terminal approach described above.
|
If setting up Intellij in this way is to complex for your liking, then consider using the terminal approach described above.
|
||||||
|
|
||||||
Follow these steps to configure your development environment for the `morphe-cli` project in IntelliJ IDEA:
|
Follow these steps to configure your development environment for the `morphe-desktop` project in IntelliJ IDEA:
|
||||||
|
|
||||||
1. **Open the `morphe-cli` project**:
|
1. **Open the `morphe-desktop` project**:
|
||||||
|
|
||||||
- Open the `morphe-cli` project in IntelliJ IDEA
|
- Open the `morphe-desktop` project in IntelliJ IDEA
|
||||||
- Ensure you are using the correct JDK as specified in [💼 Prerequisites](0_prerequisites.md)
|
- Ensure you are using the correct JDK as specified in [💼 Prerequisites](0_prerequisites.md)
|
||||||
|
|
||||||
2. **Import projects**:
|
2. **Import projects**:
|
||||||
|
|
||||||
Import the projects you cloned as modules into the `morphe-cli` project:
|
Import the projects you cloned as modules into the `morphe-desktop` project:
|
||||||
|
|
||||||
1. Open the **Project Structure** dialog by pressing **Ctrl + Alt + Shift + S**
|
1. Open the **Project Structure** dialog by pressing **Ctrl + Alt + Shift + S**
|
||||||
2. Navigate to the **Modules** section
|
2. Navigate to the **Modules** section
|
||||||
3. Import each additional project as a module under the `morphe-cli` project
|
3. Import each additional project as a module under the `morphe-desktop` project
|
||||||
|
|
||||||
3. **Synchronize Gradle projects**:
|
3. **Synchronize Gradle projects**:
|
||||||
|
|
||||||
- Click on the **Sync All Gradle Projects** button in the Gradle tool window
|
- Click on the **Sync All Gradle Projects** button in the Gradle tool window
|
||||||
- Verify that all Gradle projects are imported successfully without errors
|
- Verify that all Gradle projects are imported successfully without errors
|
||||||
|
|
||||||
4. **Configure the Run Configuration for `morphe-cli`**:
|
4. **Configure the Run Configuration for `morphe-desktop`**:
|
||||||
|
|
||||||
1. Locate the `app.morphe.cli.command.MainCommandKt` class in the `morphe-cli` project
|
1. Locate the `app.morphe.desktop.command.MainCommandKt` class in the `morphe-desktop` project
|
||||||
2. Click the green **Play** button next to the `main` function. This will generate a new run configuration
|
2. Click the green **Play** button next to the `main` function. This will generate a new run configuration
|
||||||
3. Edit the run configuration as follows:
|
3. Edit the run configuration as follows:
|
||||||
|
|
||||||
@@ -108,7 +108,7 @@ Follow these steps to configure your development environment for the `morphe-cli
|
|||||||
--install # Install the patched APK to a device connected via ADB after patching
|
--install # Install the patched APK to a device connected via ADB after patching
|
||||||
```
|
```
|
||||||
|
|
||||||
- **Working directory**: Set to the parent directory of the `morphe-cli` project:
|
- **Working directory**: Set to the parent directory of the `morphe-desktop` project:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ProjectFileDir$/..
|
$ProjectFileDir$/..
|
||||||
@@ -125,7 +125,7 @@ Follow these steps to configure your development environment for the `morphe-cli
|
|||||||
|
|
||||||
### 🥼 Working on `morphe-patcher` and `morphe-library` (Extremely optional)
|
### 🥼 Working on `morphe-patcher` and `morphe-library` (Extremely optional)
|
||||||
|
|
||||||
1. **Import as modules**: Import `morphe-patcher` and `morphe-library` as modules in the `morphe-cli` project
|
1. **Import as modules**: Import `morphe-patcher` and `morphe-library` as modules in the `morphe-desktop` project
|
||||||
|
|
||||||
2. **Configure module dependencies**:
|
2. **Configure module dependencies**:
|
||||||
|
|
||||||
@@ -137,17 +137,17 @@ Follow these steps to configure your development environment for the `morphe-cli
|
|||||||
|
|
||||||
6. **Set up local publication**:
|
6. **Set up local publication**:
|
||||||
|
|
||||||
- Add **Before launch** tasks in the `morphe-cli` run configuration
|
- Add **Before launch** tasks in the `morphe-desktop` run configuration
|
||||||
- Use the `publishToMavenLocal` Gradle task to publish the `morphe-patcher` and `morphe-library` projects to your local Maven repository
|
- Use the `publishToMavenLocal` Gradle task to publish the `morphe-patcher` and `morphe-library` projects to your local Maven repository
|
||||||
|
|
||||||
## ✅ Verify your setup
|
## ✅ Verify your setup
|
||||||
|
|
||||||
Now that you have set up your development environment, verify that everything works as intended:
|
Now that you have set up your development environment, verify that everything works as intended:
|
||||||
|
|
||||||
1. **Run Morphe CLI**:
|
1. **Run Morphe Desktop**:
|
||||||
|
|
||||||
- Run the `morphe-cli` project with the run configuration you created
|
- Run the `morphe-desktop` project with the run configuration you created
|
||||||
- Confirm that the CLI starts and executes the command you specified in the program arguments
|
- Confirm that the Desktop starts and executes the command you specified in the program arguments
|
||||||
|
|
||||||
2. **Edit the projects**:
|
2. **Edit the projects**:
|
||||||
|
|
||||||
@@ -157,7 +157,7 @@ Now that you have set up your development environment, verify that everything wo
|
|||||||
|
|
||||||
- Set a breakpoint in the projects
|
- Set a breakpoint in the projects
|
||||||
- Run the project in debug mode and confirm that the breakpoint is hit
|
- Run the project in debug mode and confirm that the breakpoint is hit
|
||||||
- Continue and let Morphe CLI exit
|
- Continue and let Morphe Desktop exit
|
||||||
|
|
||||||
## ⚠️ Troubleshoot your development environment
|
## ⚠️ Troubleshoot your development environment
|
||||||
|
|
||||||
@@ -171,5 +171,5 @@ Now that you have set up your development environment, verify that everything wo
|
|||||||
|
|
||||||
To learn more about the individual projects, refer to their respective documentations:
|
To learn more about the individual projects, refer to their respective documentations:
|
||||||
|
|
||||||
- [Morphe CLI](https://github.com/MorpheApp/morphe-cli/tree/main/docs)
|
- [Morphe Desktop](https://github.com/MorpheApp/morphe-desktop/tree/main/docs)
|
||||||
- [Morphe Patcher](https://github.com/MorpheApp/morphe-patcher/tree/main/docs)
|
- [Morphe Patcher](https://github.com/MorpheApp/morphe-patcher/tree/main/docs)
|
||||||
@@ -10,7 +10,7 @@ You can patch any app you want, as long as you want YouTube, YT Music, or Reddit
|
|||||||
|
|
||||||
## 3. How to get Morphe?
|
## 3. How to get Morphe?
|
||||||
|
|
||||||
[Download Morphe](https://morphe.software/download) and follow the prompts to patch your app. Alternatively, you can follow the [Morphe CLI documentation](https://github.com/MorpheApp/morphe-cli/tree/main/docs) to use Morphe CLI to patch using a computer.
|
[Download Morphe](https://morphe.software) and follow the prompts to patch your app. Alternatively, you can follow the [Morphe Desktop documentation](https://github.com/MorpheApp/morphe-desktop/tree/main/docs) to use Morphe Desktop to patch using a computer.
|
||||||
|
|
||||||
## 4. Is Morphe safe?
|
## 4. Is Morphe safe?
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ What you found is a "pre-patched" APK patched by someone else.
|
|||||||
Since there's no way to know if the APK was maliciously altered by someone else,
|
Since there's no way to know if the APK was maliciously altered by someone else,
|
||||||
for the safety of your device and your online accounts **you should not use pre-patched APKs**.
|
for the safety of your device and your online accounts **you should not use pre-patched APKs**.
|
||||||
|
|
||||||
The official and only safe way to use Morphe is to patch yourself on your phone using the [Android Morphe app](https://morphe.software) or on your computer using [Morphe CLI](https://github.com/MorpheApp/morphe-cli/tree/main/docs).
|
The official and only safe way to use Morphe is to patch yourself on your phone using the [Android Morphe app](https://morphe.software) or on your computer using [Morphe Desktop](https://github.com/MorpheApp/morphe-desktop/tree/main/docs).
|
||||||
|
|
||||||
## 25. How do I patch Morphe with root?
|
## 25. How do I patch Morphe with root?
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user