mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[CI] Mac OS app (#6955)
* use 7z instead of dmg * osx: use always writable paths
This commit is contained in:
@@ -18,7 +18,8 @@ function DataStorage:getDataDir()
|
||||
-- confined ubuntu app has write access to this dir
|
||||
data_dir = string.format("%s/%s", os.getenv("XDG_DATA_HOME"), package_name)
|
||||
elseif os.getenv("APPIMAGE") or os.getenv("KO_MULTIUSER") then
|
||||
data_dir = string.format("%s/%s/%s", os.getenv("HOME"), ".config", "koreader")
|
||||
local user_rw = jit.os == "OSX" and "Library/Application Support" or ".config"
|
||||
data_dir = string.format("%s/%s/%s", os.getenv("HOME"), user_rw, "koreader")
|
||||
else
|
||||
data_dir = "."
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user