docs: add instructions to set up Gradle

This commit is contained in:
Akash Yadav
2024-12-31 20:27:30 +05:30
parent c0bdf4e9f0
commit a3be906447

View File

@@ -111,6 +111,24 @@ to build IronFox.
### Build setup
- Setup F-Droid's `gradle` script to be available in your `PATH` :
```
mkdir -p $HOME/bin
wget https://gitlab.com/fdroid/fdroidserver/-/raw/master/gradlew-fdroid -O "$HOME/bin/gradle"
chmod +x "$HOME/bin/gradle"
export PATH=$HOME/bin:$PATH
```
- Disable Gradle Daemons and configuration cache :
```
mkdir -p ~/.gradle
echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties
echo "org.gradle.configuration-cache=false" >> ~/.gradle/gradle.properties
```
- Create a new Python 3.9 virtual environment, then activate it :
```
python3.9 -m venv env