2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

388 Commits

Author SHA1 Message Date
Martín Fernández
1adea4a497 Add macOS target
Co-authored-by: Jason Benwell <jbenwell@hotmail.com>
2020-07-11 01:29:49 +02:00
yparitcher
d6b820fd5a
Do not link cache dir as it may already exist (#6358)
use bash with extglob to not match one result

closes koreader/koreader#6357
2020-07-09 08:39:36 +02:00
zwim
488721e62e
[Android] Add support for custom startup scripts (#6275)
Add the possibility to run *.sh scripts:

After an update of koreader all *.sh scripts in /sdcard/koreader/scripts.afterupdate
are executed.

On every start of koreader run all *.sh scripts in /sdcard/koreader/scripts.always
2020-06-19 21:23:47 +02:00
Martín Fernández
4d8cf983e2
Debian - fix some lintian errors (#6099) 2020-05-14 14:26:00 +02:00
NiLuJe
9ce22f53b9
[Kindle] Hide the status bar on current FW, too. (#5943)
Via wmctrl
2020-03-15 01:28:37 +01:00
NiLuJe
12e54a17b3
Get rid of the old PB TC (#5860) 2020-02-15 23:49:04 +01:00
NiLuJe
ca4f05d7db
Actually ship the Cervantes version of spinning_zsync (#5853)
Followup to #5850 ;).

Ooops. Thanks @avsej
2020-02-12 17:42:17 +01:00
NiLuJe
de15ab3a87
Unbreak OTA on crappy shells (#5850)
* Unbreak OTA on crappy shells

  Very, very old ash versions abort on set -o failures (as mandated by
POSIX, granted). This makes it impossible to reliably catch failures in
a single step.

So do it from the Lua side instead.

Should fix #5844

* Launch the zsync wrapper through bash on Cervantes
2020-02-12 00:07:05 +01:00
Martín Fernández
67627ce2d9
Remarkable port (#5828)
Touchscreen is mirrored in X & Y and has a different resolution from the eink panel.

Uses systemd for time/date/suspend/poweroff/reboot
Two systemd units for platform integration. button-listen is a very
simple launcher.
to-do: add support for wifi by implementing  a wpa supplicant dbus client.

Authored-by: Thomas Spurden <tcrs@users.noreply.github.com>
2020-02-08 01:58:10 +01:00
NiLuJe
72fd93c4dd
Unbreak OTA on Kindle (#5758)
* Deref hardlinks in tarballs
* Ensure an OTA won't break the launcher script, which'd screw the user on exit.
2020-01-11 04:05:14 +01:00
Frans de Jonge
d647c62c67
[i18n] Use sort to keep POT order more stable (#5716) 2019-12-31 17:47:54 +01:00
NiLuJe
47da0ae1cd
Unbreak the KUAL extension (#5715)
* Prefer our own FBInk binary
* Get rid of the CRe config tweaks
* Oops, actually ship libkohelper in the KUAL extension.
* Bump extension version
* Flush to disk before printing final status message
2019-12-31 17:07:33 +01:00
Frans de Jonge
8a474e6922
Finish Weblate migration (#5713)
Closes #3754.

Adds an automated source file push to the koreader/koreader-translations repo and a cute little badge.
2019-12-31 15:39:15 +01:00
Martín Fernández
a5069f1c26 android: make system fonts toggable (#5670)
Also add droid font back to android and remove the workaround
2019-12-08 14:54:14 +01:00
Frans de Jonge
d167b74823
Transifex pull on release build (#5674)
There's some delay on the Weblate end. Partially reverts #5507. Fixes #5673.
2019-12-07 17:11:29 +01:00
Frans de Jonge
c7079c80be
[fix] kodev: Allow nightly build to succeed (#5507)
Translations live in a submodule since <https://github.com/koreader/koreader/pull/5506>,
and without initialized submodules `kodev release` will therefore fail.

The specifics need a fair bit more attention once Weblate has been set up, but this should
suffice for the nightly/stable build to succeed.
2019-10-19 17:45:49 +02:00
Frans de Jonge
d79771f4d9
[Android] Ship Noto (#5458)
Reverts a small part of #5310.

I don't really have the time to investigate doing font fallback better and the Android landscape is a tad far from uniform.

Fixes #5381.
2019-10-08 16:10:55 +02:00
Frans de Jonge
2cd9b50137
[Android] Don't ship Noto (#5310)
Follow-up to <https://github.com/koreader/koreader/pull/5252>. This greatly reduces the Android package size.

See discussion in <https://github.com/koreader/koreader/pull/5264#issuecomment-525517001>.
2019-09-04 20:50:25 +02:00
Frans de Jonge
503a57b32b [Android] Don't package Droid Sans
This comes preinstalled on every Android device. It's only 105.6 KiB, but every space reduction is a good one.

Also opens the way to dropping Noto.

Cf. <https://github.com/koreader/koreader/pull/5200#issuecomment-524501845>.
2019-08-30 19:53:36 +02:00
Martín Fernández
4910dbc6d2 android: migrate from lzma to zip file 2019-08-30 16:42:57 +02:00
Frans de Jonge
a9f24815c6
[chore] Makefile cleanups (#5273)
I overlooked the Kindle cleanup line in https://github.com/koreader/koreader/pull/5268, but that kind of thing is what variables are made for.
2019-08-27 15:22:34 +02:00
Frans de Jonge
6ff19b2caf
[AppImage] AppImageTool 12 (#5275)
https://github.com/AppImage/AppImageKit/releases/tag/12
2019-08-27 14:31:59 +02:00
Frans de Jonge
ec25cea01d
[fix] Cervantes package generation (#5272)
Forgotten line from https://github.com/koreader/koreader/pull/5268.
2019-08-26 22:17:21 +02:00
Frans de Jonge
8e38b1c90b
[feat] Friendly filename (#5268)
Changes Cervantes, Kindle, Kobo, Pocketbook, and Sony to the following format:

```
koreader-kobo-v2018.11.1.zip
koreader-kobo-debug-v2018.11.1.zip
```

Changes Android to the following format:
```
koreader-android-arm-v2019.09.apk
koreader-android-arm-debug-v2019.09.apk
koreader-android-x86-v2019.09.apk
koreader-android-x86-debug-v2019.09.apk
```

Fixes <https://github.com/koreader/koreader/issues/4297>.
2019-08-26 20:29:08 +02:00
Frans de Jonge
2c555830f9
[feat, i18n] Implement ngettext (#5257)
Fixes <https://github.com/koreader/koreader/issues/5249>.

See https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html and https://www.gnu.org/software/gettext/manual/html_node/Translating-plural-forms.html for more information.

Usage:
```lua
local T = ffiUtil.template
local _ = require("gettext")
local N_ = _.ngettext

local items_string = T(N_("1 item", "%1 items", num_items), num_items)
```
2019-08-24 23:06:06 +02:00
Frans de Jonge
6ed58346a1
[i18n] Add translator notes (#5250)
Thanks to <https://github.com/koreader/koreader/pull/5237> we can now  extract the knowledge currently embedded in Transifex and put it directly in our source. This positively affects <https://github.com/koreader/koreader/issues/3754>.

Translation instructions and knowledge that comes out of localization-related questions should be preserved in the source, because Transifex is too ephemeral. For example, the links from <https://github.com/koreader/koreader/pull/2290> are no longer accessible. Even when they are, it's quite useful to have this information around while dealing with the code as well, and I also hope it'll be informative to contributors who seldom visit Transifex.

This commit also makes a few minor changes to obviate the need for comments where possible.
2019-08-24 09:25:38 +02:00
Frans de Jonge
fbd331dd07
[i18n] Switch make pot to xgettext (#5237)
This introduces context to our strings to differentiate them when necessary.

The syntax chosen is `C_()`, following [glib](https://developer.gnome.org/glib/2.28/glib-I18N.html#C-:CAPS).

```lua
local _ = require("gettext")
local C_ = _.pgettext

C_("Menu|StyleTweaks|", "Pages")
```

Closes #5232.
2019-08-21 22:18:14 +02:00
NiLuJe
327933d12f
Make the KUAL extension autonomous on Kindle (#5112)
* Sever its dependency on various things from KOReader's own directory.
2019-07-09 19:38:32 +02:00
Frans de Jonge
27ddd6f313
[spec] Better insulation (#4972)
Some combination of Travis and/or older Busted necessitated insufficient insulation.

Follow-up to https://github.com/koreader/koreader/pull/4970

Space condensing carried over; reset at the start of readertoc.
2019-04-25 23:33:47 +02:00
Frans de Jonge
f38918a6f2
[Ubuntu Touch] Strip OTA update code (#4962)
It distracts the developers. ;-)
2019-04-22 15:48:40 +02:00
Frans de Jonge
4371422898
[fix, Ubuntu Touch] Actually bundle libSDL2.so! (#4946)
Accidentally broken in https://github.com/koreader/koreader/pull/2132.
2019-04-19 22:14:59 +02:00
Frans de Jonge
1887708012
[Android] Add F-Droid latest file (#4869)
This can be added to the build server as an artifact and used for automatic F-Droid updates. Cf. https://github.com/koreader/koreader/issues/2040#issuecomment-474925297 pointed out by @pazos.
2019-04-02 18:28:46 +02:00
Martín Fernández
dde301e765 [Android] use the same tag for all logs (#4862) 2019-04-01 15:48:10 +02:00
Frans de Jonge
523be5e7d9
[fix] Makefile: declare all phonies (#4819)
It's generally working as expected at the moment because you're unlikely to have a file named `clean`. But if you were to create a file named `all` or `clean` you could have a pretty difficult time figuring out why nothing's happening anymore.

Pointed out by https://github.com/mrtazz/checkmake which I ran out of sheer curiosity.
2019-03-19 16:08:13 +01:00
Martín Fernández
ae0861eda8 [Android] Set flavor at build time 2019-03-03 11:47:52 +01:00
Frans de Jonge
365a5ad876
[chore] Deprecate Android OTA code (#4636)
Fixes #4632.
2019-02-22 12:02:26 +01:00
Frans de Jonge
a607629129
[fix, AppImage] Add libbsd.so.0 & libXss.so.1 dummy (#4634)
Fixes #4627.
2019-02-21 20:14:20 +01:00
Frans de Jonge
1cc32362aa
[build, Android] Use faster lzma2 compression (#4562)
This greatly speeds up package creation and somewhat speeds up resource bundle extraction.
2019-02-08 18:18:32 +01:00
Martín Fernández
3f415604b9 fix android release version (#4549) 2019-02-04 13:52:20 +01:00
Frans de Jonge
81a2423982
[Android, feat] Set APK version to a sane automated value (#4546)
Includes "set android versionCode and android versionName at buildtime" (<https://github.com/koreader/android-luajit-launcher/pull/106>)

* versionCode uses the number of Git commits, because Google doesn't like values larger than `2100000000`
* versionName uses our existing version string

References #2040.
2019-02-03 20:19:52 +01:00
Frans de Jonge
b68cdc202d
[Android] Add release/debug APK switch (#4532)
References #2040.

Includes https://github.com/koreader/android-luajit-launcher/pull/99
2019-01-31 17:34:13 +01:00
Frans de Jonge
b7eb2f7e7f
[fix] AppImage: include libsndio for SDL (#4488)
Better than #4487.
2019-01-17 16:04:34 +01:00
Frans de Jonge
9351910657
[fix] AppImage: also include libsndio (#4487)
Should fix #4485.
2019-01-17 15:28:18 +01:00
Martín Fernández
6de5927dc2 [build] Add support for Debian packages (#4434)
* Add support for Debian packages

* SDL: add device probe
2019-01-03 18:21:35 +01:00
Martín Fernández
a57fd4fef8 dismiss errors checking if in Docker 2018-12-18 11:57:57 +01:00
Martín Fernández
0a63ee5a11 [cervantes] fix ota updates (#4386) 2018-12-08 07:28:59 +00:00
Martín Fernández
1e69fae7bc [feat] Add support for BQ/Fnac devices (#4294)
Adds support for devices found in https://blog.bq.com/es/bq-ereaders-developers-program/. Tested on BQ Cervantes 4 (last BQ device from 2017).

It adds a new touch input event handler (discussed in #4275) which should work on other single touch devices (ie: Kobo Touch, Mini, Glo, Aura HD) but wasn't tested.

Includes base bump with: [feat] Add BQ/Fnac device support (https://github.com/koreader/koreader-base/pull/745)
2018-10-31 23:48:36 +01:00
Frans de Jonge
d1298ff8e5
[feat] Smaller version on annotated tag (#4295) 2018-10-31 23:34:11 +01:00
Frans de Jonge
c01d105bb3
[build, AppImage] Update to AppImageTool 11 (#4288)
It came out last week: https://github.com/AppImage/AppImageKit/releases/tag/11

I also fixed the `libcairo` issue from https://github.com/koreader/koreader-base/issues/730 in https://github.com/koreader/virdevenv/pull/21
2018-10-28 07:12:30 +01:00
Frans de Jonge
3cfa42b3f7 [build] Stick to AppImageTool 10 (#4209)
This should unbreak the AppImage build without having to update the Docker image.

Fixes https://github.com/koreader/koreader-base/issues/730
2018-09-08 22:52:04 +02:00