Skip to content

Commit

Permalink
Merge pull request #1 from Ayagikei/fix_windows_cache_path
Browse files Browse the repository at this point in the history
Fix windows cache path
  • Loading branch information
Ayagikei committed Feb 13, 2023
2 parents 05fed82 + 7e488b4 commit cb2fdd0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
Expand Down
4 changes: 2 additions & 2 deletions src/jvmMain/kotlin/base/Val.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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+"
}
7 changes: 5 additions & 2 deletions src/jvmMain/kotlin/ui/AppStoreImpl.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit cb2fdd0

Please sign in to comment.