feat: include modules and put layout file in working folder
This commit is contained in:
parent
68fae30197
commit
c760e15608
3 changed files with 4 additions and 1 deletions
|
@ -33,6 +33,7 @@ compose.desktop {
|
|||
application {
|
||||
mainClass = "xyz.atnrch.wrench.WrenchApp"
|
||||
nativeDistributions {
|
||||
includeAllModules = true
|
||||
targetFormats(TargetFormat.AppImage)
|
||||
packageName = "Wrench"
|
||||
packageVersion = "1.0.0"
|
||||
|
|
|
@ -7,6 +7,7 @@ import androidx.compose.ui.window.application
|
|||
import androidx.compose.ui.window.rememberWindowState
|
||||
import xyz.atnrch.wrench.gui.WrenchScaffold
|
||||
import xyz.atnrch.wrench.logger.Logger
|
||||
import java.nio.file.Paths
|
||||
import javax.swing.UIManager
|
||||
|
||||
class WrenchApp {
|
||||
|
@ -21,6 +22,7 @@ class WrenchApp {
|
|||
onCloseRequest = ::exitApplication
|
||||
) {
|
||||
Logger.info("Starting Wrench...")
|
||||
Logger.info("Working Directory: ${Paths.get("").toAbsolutePath()}")
|
||||
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName())
|
||||
MaterialTheme { WrenchScaffold(state) }
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ class LayoutStorage(private val onWatcherEntriesUpdate: (List<WatcherEntry>) ->
|
|||
private val gson: Gson = Gson().newBuilder()
|
||||
.setPrettyPrinting()
|
||||
.create()
|
||||
private val file = File("layout.json")
|
||||
private val file = File("./layout.json")
|
||||
|
||||
fun storeLayout(list: List<SerializedWatcherEntry>) {
|
||||
val writer = FileWriter(file)
|
||||
|
|
Reference in a new issue