Build Tools
Kotlin Multiplatform artifact build and run plugin for Aurora OS.
Features
- Init sysroot
- Build RPM package
- Sign RPM package and run on Emulator
Configuration
buildTools {
// Relation of KMP and Aurora OS targets, default params.
targets {
aarch64 = "linuxArm64"
x86_64 = "linuxX64"
}
// Aurora IDE (BT)
sdk {
// Path to Aurora SDK, default path.
path = file(System.getProperty("user.home")).resolve("AuroraOs").toPath()
// Image docker name:tag, default auto find.
image = "aurora-build-tools:5.2.0.70"
}
// Build package rpm.
rpm {
// Application ID, default param.
id = "ru.auroraos.demo"
// Name of the application, default param.
name = "Demo executable"
// Description of the application, default param.
description = "Demo application KMP."
// Version in spec file, default param.
version = "0.0.1"
// Permissions in desktop file, default param.
permissions = emptyList()
// 3rdParty dependencies.
libs3rdParty = emptyList()
// Path to icons png (86x86, 108x108, 128x128, 172x172), required.
icons = project.layout.projectDirectory.dir("../aurora/icons").asFile.toPath()
// Path to resources.
resources = project.layout.projectDirectory.dir("./src/commonMain/resources").asFile.toPath()
}
// By default, run is configured to connect to the emulator.
// Device config example.
run {
// Address for ssh connect.
host = "192.168.2.15"
// Username for connect.
user = "defaultuser"
// Port for ssh connect.
port = 22
// Is validation necessary?
validate = true
// Path to ssh key.
sshKey = File(System.getProperty("user.home")).resolve(".ssh/id_rsa").toPath()
}
}
Tasks
Aurora Build-Tools tasks
------------------------
buildDebugPackageLinuxArm64 - Create debug rpm package aarch64 for linuxArm64.
buildDebugPackageLinuxX64 - Create debug rpm package x86_64 for linuxX64.
buildReleasePackageLinuxArm64 - Create release rpm package aarch64 for linuxArm64.
buildReleasePackageLinuxX64 - Create release rpm package x86_64 for linuxX64.
initSysroot - Create sysroot directory and symlinks for project.
runDebugPackage - Run debug package.
runReleasePackage - Run release package.
Build
./gradlew publishToMavenLocal