Add release build support (DMG)
This commit is contained in:
parent
b348f8a327
commit
81d725e224
2 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ fun createDataStore(producePath: () -> String): DataStore<Preferences> {
|
||||||
fun dataStorePath(): String {
|
fun dataStorePath(): String {
|
||||||
val root = when {
|
val root = when {
|
||||||
OperatingSystem.isWindows() -> "${OperatingSystem.home}\\AppData\\Roaming\\Pixelized\\"
|
OperatingSystem.isWindows() -> "${OperatingSystem.home}\\AppData\\Roaming\\Pixelized\\"
|
||||||
OperatingSystem.isMacintosh() -> ""
|
OperatingSystem.isMacintosh() -> "${OperatingSystem.home}/Library/Pixelized/"
|
||||||
else -> ""
|
else -> ""
|
||||||
}
|
}
|
||||||
return "${root}characterssheet.preferences_pb"
|
return "${root}characterssheet.preferences_pb"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ object OperatingSystem {
|
||||||
|
|
||||||
val home: String
|
val home: String
|
||||||
get() = when {
|
get() = when {
|
||||||
isWindows() -> System.getProperty("user.home")
|
isWindows() || isMacintosh() -> System.getProperty("user.home")
|
||||||
else -> ""
|
else -> ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue