mirror of
https://github.com/izzy2lost/aab2apk.git
synced 2026-06-19 01:20:08 -07:00
Added Launcher Icons
This commit is contained in:
+11
-1
@@ -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 |
@@ -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 |
Reference in New Issue
Block a user