diff --git a/build.gradle.kts b/build.gradle.kts index 0e5714f..bda33e9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -47,7 +47,7 @@ compose.desktop { nativeDistributions { targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb) packageName = "LifeUp Desktop" - packageVersion = "1.0.0" + packageVersion = "1.0.1" macOS { iconFile.set(project.file("icon.icns")) } diff --git a/src/jvmMain/kotlin/base/Val.kt b/src/jvmMain/kotlin/base/Val.kt index 4b22ab9..33072ec 100644 --- a/src/jvmMain/kotlin/base/Val.kt +++ b/src/jvmMain/kotlin/base/Val.kt @@ -2,9 +2,9 @@ package base object Val { // FIXME: get version from gradle - val version: String = "1.0.0" + val version: String = "1.0.1" - val targetLifeUpCloudVersion = "1.1.1+" + val targetLifeUpCloudVersion = "1.1.2+" val targetLifeUpAndroidVersion = "1.91.0+" } \ No newline at end of file diff --git a/src/jvmMain/kotlin/ui/AppStoreImpl.kt b/src/jvmMain/kotlin/ui/AppStoreImpl.kt index 32b57a8..006d008 100644 --- a/src/jvmMain/kotlin/ui/AppStoreImpl.kt +++ b/src/jvmMain/kotlin/ui/AppStoreImpl.kt @@ -23,12 +23,15 @@ class AppStoreImpl( ) { val resourceDir - get() = (System.getProperty("compose.application.resources.dir") ?: "").ifBlank { + get() = System.getenv("APPDATA").ifBlank { + System.getProperty("compose.application.resources.dir") + }.ifBlank { System.getProperty("user.dir") } + val cacheDir - get() = File(resourceDir, "cache").also { + get() = File(resourceDir + File.separator + "LifeUp Desktop" + File.separator + "cache").also { if (it.exists().not()) { it.mkdirs() }