Skip to content

Building the Project

Sesu8642 edited this page Oct 16, 2024 · 3 revisions

Building the project - Steps for Ubuntu 22.04

  1. Install JDK and Git
sudo apt install openjdk-17-jdk git
  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-<version>_latest.zip -d ./Android
cd FeudalTactics/
echo 'sdk.dir=/path/to/Android/sdk' > local.properties
// accept all licenses
/path/to/Android/sdk/cmdline-tools/bin/sdkmanager --sdk_root=/path/to/Android/sdk --licenses
  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 lwjgl:run

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

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

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