feat: cible desktop macOS via :desktopApp:run

This commit is contained in:
herel committed 2026-08-28 15:55:17 +02:00
1 parent bef47dde27
commit 68d9f7e0a5
4 files changed
+58

No files matched your search

@@ -0,0 +1,20 @@
package com.livrets.desktop
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import androidx.compose.ui.window.rememberWindowState
import com.livrets.App
fun main() = application {
Window(
onCloseRequest = ::exitApplication,
title = "Livrets",
state = rememberWindowState(width = 480.dp, height = 800.dp),
) {
App(filesDirPath = storageDir())
}
}
private fun storageDir(): String =
System.getProperty("user.home") + "/.livrets"