3.0 KiB
Compiling Friday Night Funkin' for Mobile Devices
Before starting, make sure your game builds on desktop. Check COMPILING.md if you haven’t done that yet.
Android
-
Create a new folder – this will store Android tools (remember where you put it!).
-
Open a terminal as Administrator.
-
Run this in the terminal (replace the path with your actual folder):
setx ANDROID_HOME "C:\path\to\your\folder" /M -
Download Android Studio Command-line Tools.
-
Extract the ZIP into your folder from step 1.
-
(Optional) Close and reopen the terminal if needed.
-
Run:
sdkmanager --install "build-tools;35.0.0" "ndk;29.0.13113456" "platforms;android-29" "platforms;android-35"- The latest NDK is not compatible with Lime you have to use the old one.
-
Download and install JDK 17 (MSI).
-
Run:
lime setup androidUse these when asked:
- Android SDK:
C:\path\to\your\folder - Android NDK:
C:\path\to\your\folder\ndk\29.0.13113456 - JDK:
C:\Program Files\Java\jdk-17
- Android SDK:
-
Now build your game:
lime test android
macOS
-
Create a new folder – this will store Android tools (remember where you put it!).
-
Open Terminal (Command ⌘ + Space → type “terminal” → Enter).
-
In Terminal:
cd /path/to/your/folder export ANDROID_HOME=/path/to/your/folder export PATH=$PATH:$ANDROID_HOME/cmdline-tools:$ANDROID_HOME/cmdline-tools/bin:$ANDROID_HOME/platform-tools -
Download Android Studio Command-line Tools.
-
Extract the ZIP into your folder from step 1.
-
(Optional) Restart Terminal if needed.
-
Run:
sdkmanager --install "build-tools;35.0.0" "ndk;29.0.13113456" "platforms;android-29" "platforms;android-35" -
Download and install JDK 17 for macOS.
-
Run:
lime setup androidUse these when asked:
- Android SDK:
/path/to/your/folder - Android NDK:
/path/to/your/folder/ndk/28.0.13004108 - JDK:
/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home(If not asked for JDK, don’t worry — just skip it.)
- Android SDK:
-
Build your game:
lime test android
iOS
Note that you can only build the game for iOS on a computer running MacOS.
- Build the game for desktop to make sure everything works. Check COMPILING.md.
- Get Xcode from the app store on your MacOS Machine.
- Download the iPhone SDK (First thing that pops up in Xcode)
- Open up a terminal tab and run
lime test ios -xcode - You will need to sign your own copy in order to run the game with a real iOS device!
- To run with an iOS simulator instead of
-xcodeuse-simulator
- To run with an iOS simulator instead of