To build this software, first install Rust and Cargo on your system.
Then download the source code and unpack it. Alternatively, install git
and download the source code with this git command:
git clone https://codeberg.org/psylink/psylink.git
All the following commands should be run in the root directory of the source code.
Run this command:
cargo run --release
cargo build --release --target x86_64-pc-windows-gnu
The executable file will be placed in the "target" subdirectory.
First, set up the android SDK/NDK as described in the Slint Android guide
These commands describe the instructions in arch linux, assuming that you have installed the package manager "yay" for Arch User Repositories (AUR) packages.
pacman -S rustup jdk17-openjdk
rustup target add aarch64-linux-android
yay -S android-tools
yay -S android-sdk android-sdk-build-tools android-sdk-platform-tools android-sdk-cmake android-sdk-cmdline-tools-latest
yay -S android-platform-32
yay -S android-ndk
cargo install xbuild
Set the following environment variables:
ANDROID_HOME
to the location of the android SDK. On ArchLinux, if installed via theandroid-sdk
AUR package, this would be/opt/android-sdk
.ANDROID_NDK_ROOT
to the location of the android NDK. On ArchLinux, if installed via theandroid-ndk
AUR package, this would be/opt/android-ndk
.JAVA_HOME
to the location of the Java compiler (javac
) executable. On ArchLinux, if you have installed openjdk 17, this would be/usr/lib/jvm/java-17-openjdk
. This is optional, ifjavac
is in your$PATH
.
Finally, run:
x build --platform android --arch arm64
You can run it on your Android device directly by
- enabling developer mode on your Android device
- allowing USB debugging in the Android developer settings
- connecting the device with a cable to your computer
- tap "accept" on the pop-up asking for whether to allow USB debugging for the connected computer
- finding your android device ID with
x devices
- running this command, replacing
adb:ABCDEFGHI
with your device ID:
x run --device adb:ABCDEFGHI