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 {
|
||||
val root = when {
|
||||
OperatingSystem.isWindows() -> "${OperatingSystem.home}\\AppData\\Roaming\\Pixelized\\"
|
||||
OperatingSystem.isMacintosh() -> ""
|
||||
OperatingSystem.isMacintosh() -> "${OperatingSystem.home}/Library/Pixelized/"
|
||||
else -> ""
|
||||
}
|
||||
return "${root}characterssheet.preferences_pb"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ object OperatingSystem {
|
|||
|
||||
val home: String
|
||||
get() = when {
|
||||
isWindows() -> System.getProperty("user.home")
|
||||
isWindows() || isMacintosh() -> System.getProperty("user.home")
|
||||
else -> ""
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue