Added Launcher Icons

This commit is contained in:
Bitmap
2024-03-16 12:22:49 +05:30
parent b51af274ae
commit 47fea602dc
6 changed files with 14 additions and 1 deletions
+11 -1
View File
@@ -42,7 +42,17 @@ compose.desktop {
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "AabToApk"
packageVersion = "1.0.0"
packageVersion = "1.0.4"
val iconsRoot = project.file("desktop-icons")
macOS{
iconFile.set(iconsRoot.resolve("launcher.icns"))
}
windows{
iconFile.set(iconsRoot.resolve("launcher.ico"))
}
linux{
iconFile.set(iconsRoot.resolve("launcher.png"))
}
}
}
}
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

+3
View File
@@ -28,6 +28,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.res.loadSvgPainter
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.useResource
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.buildAnnotatedString
@@ -556,8 +557,10 @@ fun main() = application {
// Check if path for bundletool exists in local storage
val path = fileStorageHelper.read(DBConstants.BUNDLETOOL_PATH) as String?
val adbPath = fileStorageHelper.read(DBConstants.ADB_PATH) as String?
val icon = painterResource("launcher.png")
Log.showLogs = true
Window(
icon = icon,
onCloseRequest = ::exitApplication,
state = rememberWindowState(
width = 1200.dp, height = 1000.dp,
Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB