It's a Rust template project for Slint GUI. It cantains frequently-used components, setting panel, configure, simple database feature and other somall feature. This project can be compiled to Desktop (Windows, Linix, Macos), Android and Web platform.
- Install
Rust
,Cargo
,cargo-apk
andwasm-pack
- Install Android
sdk
,ndk
,jdk17
, and set environment variables. - Example:
export JAVA_HOME=$LIBRARY_PATH/openjdk
export ANDROID_HOME=$HOME/Android/Sdk
export ANDROID_NDK=$HOME/Android/Sdk/ndk/27.0.12077973
export ANDROID_NDK_ROOT=$HOME/Android/Sdk/ndk/27.0.12077973
- Run
make android-build-release
to build a release version android APK - Run
make desktop-debug
to run it on desktop platform - Run
make desktop-build-release
to build a release version desktop application - Run
make web-build-dist
to build a release version website. And the output directory isweb/dist
- Run
make web-server-dist
to run a website server - Refer to Makefile for more information
min-sdk-version = 23
target-sdk-version = 32