Skip to content

Building the Project

Sesu8642 edited this page Jan 21, 2023 · 3 revisions

Building the project - Steps for Ubuntu 22.04

  1. Install JDK
sudo apt install openjdk-8-jdk
  1. Clone this repository
git clone https://github.com/Sesu8642/FeudalTactics
  1. OPTIONAL if you want to build the Android app: Download and install the Android SDK (Can alternatively be done using Android Studio)
    1. Go to this page: https://developer.android.com/studio/index.html#command-tools
    2. Download the zip file for your OS (here: Linux)
mkdir Android
unzip ./Downloads/commandlinetools-linux-8512546_latest.zip -d ./Android
cd FeudalTactics/
echo 'sdk.dir=/path/to/Android/sdk' > local.properties
  1. Build
// Note: The first run can fail if you didn't install the Android SDK. Just try again and it should work.

// run desktop version
./gradlew desktop:run

// build jar (lands in FeudalTactics/desktop/build/libs/)
./gradlew desktop:dist

// run Android version on device or emulator
./gradlew android:installDebug android:run

// build apk
./gradlew android:assembleRelease
Clone this wiki locally