docs: Fix mistakes

This commit is contained in:
oSumAtrIX 2024-02-25 06:23:03 +01:00 committed by GitHub
parent 9a0a51380b
commit bc39e89b05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 30 additions and 28 deletions

View File

@ -2,33 +2,35 @@
A certain development environment is suggested to allow for streamlined development on ReVanced. A certain development environment is suggested to allow for streamlined development on ReVanced.
## 1. ⬇️ Clone repositories ## 🚀 Get started
```bash 1. ⬇️ Clone repositories
mkdir revanced && cd revanced
repositories=( ```bash
"revanced-cli" mkdir revanced && cd revanced
"revanced-patches"
"revanced-patcher" # Only if you want to work on ReVanced Patcher
"revanced-library" # Only if you want to work on ReVanced Library
"revanced-integrations"
)
for repository in "${repositories[@]}" ; do repositories=(
git clone -b dev --single-branch --depth 1 https://github.com/revanced/$repository "revanced-cli"
done "revanced-patches"
``` "revanced-patcher" # Only if you want to work on ReVanced Patcher
"revanced-library" # Only if you want to work on ReVanced Library
"revanced-integrations"
)
## 2. 🛠️ Build for repository in "${repositories[@]}" ; do
git clone -b dev --single-branch --depth 1 https://github.com/revanced/$repository
done
```
To build all projects, run the following command from the directory which contains the repositories. 2. 🛠️ Build
```bash To build all projects, run the following command from the directory which contains the repositories.
for project in */; do
(cd "$project" && ./gradlew build) ```bash
done for project in */; do
``` cd "$project" && ./gradlew build
done
```
> [!NOTE] > [!NOTE]
> If the build fails due to authentication, you may need to authenticate to GitHub Packages. > If the build fails due to authentication, you may need to authenticate to GitHub Packages.
@ -41,7 +43,7 @@ done
> gpr.key = key > gpr.key = key
> ``` > ```
## ⚙️ Workspace setup in IntelliJ IDEA ## ⚙️ Setup your workspace in IntelliJ IDEA
1. Open the `revanced-cli` project in IntelliJ IDEA and ensure you are using the right JDK from [💼 Prerequisites](0_prerequisites.md) 1. Open the `revanced-cli` project in IntelliJ IDEA and ensure you are using the right JDK from [💼 Prerequisites](0_prerequisites.md)
2. Import other projects you cloned earlier as modules to the `revanced-cli` project 2. Import other projects you cloned earlier as modules to the `revanced-cli` project
@ -84,7 +86,7 @@ done
> by running `./gradlew publishToMavenLocal`. > by running `./gradlew publishToMavenLocal`.
> You can now use them as dependencies in local projects such as `revanced-patches` or `revanced-cli`. > You can now use them as dependencies in local projects such as `revanced-patches` or `revanced-cli`.
## 5. ⚠️ Troubleshoot your development environment ## ⚠️ Troubleshoot your development environment
Confirm that your development environment works as intended: Confirm that your development environment works as intended: