unitedgold.io samples directory
This project will contain samples of API usage for the UnitedGold project.
kmp_console: native and JVM console app
simple JVM/Native console sample application.
jvm variant
./gradlew kmp_console:runJvm
You can create distribution with
./gradlew kmp_console:installJvmDist
You will find it in the ./kmp_console/build/install/kmp_console-jvm: the whole file tree is needed. You can rain it from command line with
./kmp_console/build/install/kmp_console-jvm/bin/kmp_console
or, on windows,
./kmp_console/build/install/kmp_console-jvm/bin/kmp_console.bat
This distribution only needs JDK be installed, like OpenJDK 17+ or Amazon Coretto 17+. It still will be much larger, even zipped, than native variant below.
Linux x64 console
./gradlew kmp_console:runDebugExecutableLinuxX64
To create standalone binary executable for linux x64:
./gradlew kmp_console:linkReleaseExecutableLinuxX64
The file is created is ./kmp_console//build/bin/linuxX64/releaseExecutable/kmp_console.kexe - to run it
./kmp_console//build/bin/linuxX64/releaseExecutable/kmp_console.kexe
You can reduce its size as usually with KMP natives by stripping and upxing it:
strip ./kmp_console//build/bin/linuxX64/releaseExecutable/kmp_console.kexe
upx ./kmp_console//build/bin/linuxX64/releaseExecutable/kmp_console.kexe
Now it should have sane size, considering how many features are packed inside (most of it not seen directly, as heavy encrypted parsec3 protocol).
This way you can create dependency-free server tools.