mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[fix, Android] Set executable bit (#5349)
Partially reverts d2536d8b7e.
Fixes <https://github.com/koreader/koreader/issues/5347>.
This commit is contained in:
@@ -15,6 +15,13 @@ end
|
||||
-- run koreader patch before koreader startup
|
||||
pcall(dofile, "/sdcard/koreader/patch.lua")
|
||||
|
||||
-- Set proper permission for binaries.
|
||||
--- @todo Take care of this on extraction instead.
|
||||
-- Cf. <https://github.com/koreader/koreader/issues/5347#issuecomment-529476693>.
|
||||
android.execute("chmod", "755", "./sdcv")
|
||||
android.execute("chmod", "755", "./tar")
|
||||
android.execute("chmod", "755", "./zsync")
|
||||
|
||||
-- set TESSDATA_PREFIX env var
|
||||
C.setenv("TESSDATA_PREFIX", "/sdcard/koreader/data", 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user