[CI] Mac OS app (#6955)

* use 7z instead of dmg
* osx: use always writable paths
This commit is contained in:
Martín Fernández
2020-12-11 15:16:29 +01:00
committed by GitHub
parent a0eb91d6ab
commit 4345201e0e
3 changed files with 40 additions and 10 deletions

View File

@@ -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