2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
Commit Graph

427 Commits

Author SHA1 Message Date
Frode Austvik
f12f317e9d [spec] Replace custom assert[Not]AlmostEquals with assert.is[_not].near (#3885)
Also, change "make static-check" to also check the tests.
2018-04-15 23:49:08 +02:00
Frans de Jonge
88dee4194d
[feat] SDL2: add window icon (new logo) (#3884)
Also update Ubuntu Touch icon

Fixes #2000, fixes #3858
2018-04-15 23:39:42 +02:00
onde2rock
ed36173e38 [fix, build] release kindle5 and kindlepw2 (#3883) 2018-04-15 22:52:58 +02:00
NiLuJe
bdb82d09c1 [chore] A round of Kobo specific script cleanup (#3876)
* Flag those scripts as executable in git

Somewhat irrelevant because we'll end up living on a FAT32 drive, but,
still.

* Cleanup Kobo startup script

Support KFMon >= 0.9.5

Don't siphon PRODUCT from nickel, it's exported by rcS, so fmon/KFMon
already inherit it.
Siphon NICKEL_HOME, on the off-chance nickel fails to figure that one
out for itself on restart.
Siphon LANG (This may be a terrible idea, rcS sets LANG to en_US.UTF-8,
while we set LC_ALL to en_US.UTF-8, but I don't know if nickel itself
ever updates LANG, since I have mine set to en_US also ;)).
My secret hope if that everything's working as it should and this ensures
we default to Nickel's locale on fresh installs?

Remove the extra sync on startup, both @Baskerville's fmon and KFMon are
smart enough not to do anything overly stupid, and recent FW versions
have a slightly more resilient DB anyway (rollback journal -> WAL).
This effectively shaves over a second off our startup time.

* Slimmed down the nickel restart script.

Based on current rcS
Scrapped a bucketload of irrelevant & legacy crap, since we're never
bootstrapping nickel, only restarting it.

* Update Kobo install instrcutions.

Point to KSM09, @Baskerville's fmon, and KFMon.
Deprecate legacy fmon, and as such, stop shipping a useless KoboRoot
tarball.
2018-04-15 15:05:45 +02:00
Frans de Jonge
e39ed902e9
[build] AppImage: support creation in Docker container (#3852) 2018-04-09 23:17:06 +02:00
Frans de Jonge
ab712f1a29
[feat] Build AppImage (#3850)
References #1417.
2018-04-08 22:39:52 +02:00
Frans de Jonge
6c3ace9940
[Android] Makefile: only use VERSION, not REVISION (#3811)
Fixes always reinstalling resource package.

See https://github.com/koreader/koreader/pull/3723#issuecomment-376508917
2018-03-29 16:59:13 +02:00
Frans de Jonge
16061370f4
Add date to git-rev version (#3723)
Adds an extra part at the end of the git-rev.

Before: `blablabla-21-g076bf406`
After: `blablabla-21-g076bf406_2018-03-05`

Fixes #2896
2018-03-07 19:26:56 +01:00
Huang Xin
a44b39fda6
[build] Darwin build of Android port (#3520) 2017-11-28 02:23:54 +08:00
Frans de Jonge
9000ed1bd3
[build] Add -debug suffix to KODEBUG builds (#3439) 2017-10-27 20:36:36 +02:00
Frans de Jonge
6e52e99b5b [fix] verbose_print deprecated by gtest 2017-10-11 09:08:18 +02:00
Frans de Jonge
53c0756def CircleCI: finishing touches (#3340)
* junit test results; unfortunately this seems to conflict with the verbose out

* fix deps cache: two files can change independently

* verbose print obsoleted by gtest in upsream busted
2017-10-11 08:38:30 +02:00
Frans de Jonge
868860a62e CircleCI parallelization
* Enable parallelism in .circleci/config.yml
* Add BUSTED_SPEC_FILE to Makefile testfront
* Use it in .ci/test.sh with xargs for test parallelization

NB This is the dumb method of improving test time.
Ideally we want a workflow fan-in/fan-out approach.
2017-10-10 14:08:49 +02:00
Huang Xin
a4e1a3ba5e reflect changes in koreader/android-luajit-launcher#62 (#3254) 2017-09-24 05:58:34 +08:00
Qingping Hou
b33c9268d2 build(fix): fail release command by default if make po failed 2017-05-11 03:23:13 -07:00
Qingping Hou
1461574894 Support configurable extra plugin lookup path (#2693)
* plugin loader(feat): support loading plugins from user defined directories
Extra plugin lookup paths can be set in global reader setting via key
`extra_plugin_paths`. Value of the key can either be a string or an array
of strings.
* build(fix): also purge non-exist plugins on build
* plugin: migrate debug plugin to menu sorter
2017-04-06 11:12:35 +02:00
Qingping Hou
2aa9d5d64e test: add unit tests for docsettings 2017-03-06 07:47:20 +01:00
Qingping Hou
0871100367 minor(fix): update koreader-misc path 2017-03-06 07:47:20 +01:00
Qingping Hou
dae4a5a413 refactor: move bootstrap code into setupkoenv.lua
add ffi.load patch
add kodev prompt command
2016-11-12 23:48:56 -08:00
Qingping Hou
854043e18d chore: fix all luacheck errors for plugins 2016-11-07 21:24:34 -08:00
Qingping Hou
816d0a551a kobo: handle charging/uncharging event 2016-10-30 15:25:51 -07:00
Qingping Hou
d0c6ea1308 build(chore): use DIST to label kindle artifacts 2016-10-16 01:28:54 -07:00
Qingping Hou
3d79d44381 build: fix android and pocketbook builds 2016-10-09 23:28:16 -07:00
Qingping Hou
8ff9a916da kodev(minor): style clean up & fixes 2016-10-09 12:05:12 -07:00
Qingping Hou
e41e489528 kodev(fix): update plugins before tests 2016-10-08 15:53:02 -07:00
Hzj_jie
da2c57f93a Automatically connect WIFI after Kobo has been resumed (#2215)
* Add bash scripts to control WIFI / IP, so we can share them with frontend/device/kobo/device.lua.

* add test cases
2016-09-01 00:05:40 -07:00
chrox
001433e6bc various test/coverage optimization 2016-08-15 00:32:40 +08:00
chrox
9ab005a1d3 fix unit test of readerlink and readerpaging
and have more confidence with the unit testing framework.

Now `make testfront` won't retry on failure and testing files are
ordered in each run so that it's possible to reproduce testing failure.

And this patch also fix flush settings not working before suspend issue:
at some point the `FlushSettings` event is sent to `UIManager` instead
of `ReaderUI`, but `UIManager` only delegated events to active widgets
and `ReaderUI` is actually not an active widgets thus will miss the event.

This patch also add a verbose debug mode with "-v" as a switch to turn
on this mode. With verbose mode on, event handling will be logged.
2016-08-12 17:05:07 +08:00
chrox
9afad43a3e refactoring utils to tools as discussed in #2197 2016-08-11 19:29:09 +08:00
chrox
41f2fe85b7 fix #2119 by updating libSDL2.so and fix Evernote Plugin 2016-07-05 22:16:42 +08:00
chrox
df65d2972a experimental port to Mac OSX
Currently it can open cre-based docs and Djvu docs
It still has some problems with PDF docs and the touch input.
2016-04-22 20:13:44 +08:00
Qingping Hou
31206cb80f ci: fix coverage report 2016-04-20 23:56:38 -07:00
Qingping Hou
357477b2be test: disable auto insulate 2016-04-19 00:01:35 -07:00
Qingping Hou
144fd170f1 uimanager(refactor): replace autosuspend if check with noop 2016-03-29 10:02:53 -07:00
chrox
dd9dde510c don't update git-rev file in android ota package 2016-03-15 20:43:12 +08:00
chrox
3a9cb659d1 add OTA update on Android 2016-03-13 23:43:05 +08:00
Qingping Hou
70266c3b35 force set MACHINE from toolchain dumpmachine
Looks like leaving it out as optional variable is more like to cause issue...
ref: https://github.com/koreader/koreader/issues/1832#issuecomment-185870105
2016-02-18 15:32:04 -08:00
Qingping Hou
8f4fae7a09 minore: more static check fixes 2016-02-10 10:30:05 -08:00
Qingping Hou
e2096ed8d9 doc: add documentation build infrastructure 2016-02-04 10:24:53 -08:00
Qingping Hou
73a048e320 build: set dependency for .busted 2016-02-03 20:28:39 -08:00
Qingping Hou
b480145134 build: add kodev script 2016-02-01 00:26:07 -08:00
Qingping Hou
0e8eb3320c minor(build): replace comment with echo 2016-01-31 14:58:05 -08:00
Qingping Hou
cdbc8e594d build: add dist-clean target 2016-01-09 12:12:10 -08:00
Qingping Hou
83b35fc99a minor: create git-rev inside install dir 2016-01-02 23:53:40 -08:00
Qingping Hou
c06209265a build: use install instead of mkdir -p 2016-01-02 23:45:23 -08:00
chrox
a284ca147f l10n for modules in utils 2015-10-18 00:34:57 +08:00
chrox
9654e9ce6c fix #1608 with touch coordinates detection
Some kobo touch devices have X Y coordinates in touch events swapped.
This patch provides a GUI to probe if the device needs to swap the XY.
The Kobo Touch users will be directed to tap on the upper right corner
of the screen and the probe will check if the X value is smaller than
the Y value in the tap event.
2015-10-18 00:25:40 +08:00
chrox
970f9a7801 verbose coverage test 2015-10-07 22:41:14 +08:00
chrox
429eeed372 verbose unit test log so that we have a clue when there is segfault 2015-10-07 15:14:27 +08:00
chrox
5bab00ff9b add apparmor.openstore file for openstore submission 2015-10-06 22:15:38 +08:00
chrox
8c0ca1c5e5 comments for the targz file extension 2015-10-03 15:07:31 +08:00
chrox
a60544b1ad Koreader Ubuntu-touch port
Currently only tested on Ubuntu-touch emulator with framework
ubuntu-sdk-14.10 for armhf.
The ubuntu-touch port is binary compatible with the Kobo port
major changes in this PR are:
1. rename the emulator device to sdl device since both the emulator
and the ubuntu-touch target use libsdl to handle input/output.
2. ubuntu-touch app has no write access to the installation dir so
all write-outs should be in a seperate dir definded in `datastorage`.
2015-10-03 14:48:51 +08:00
chrox
dce9e50bde don't use tar.gz file extension for OTA
because ISP may cache gz files and confuse zsync protocol
When I wget the gz file it's redirected to a ISP cached file and zsync
will fail.
```
~ $ wget http://vislab.bjmu.edu.cn/apps/koreader/ota/koreader-kindle-arm-linux-gnueabi-v2014.11-348-gddc3619.tar.gz
--2015-09-26 10:55:54--
http://vislab.bjmu.edu.cn/apps/koreader/ota/koreader-kindle-arm-linux-gnueabi-v2014.11-348-gddc3619.tar.gz
Resolving vislab.bjmu.edu.cn (vislab.bjmu.edu.cn)... 202.112.180.24
Connecting to vislab.bjmu.edu.cn
(vislab.bjmu.edu.cn)|202.112.180.24|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location:
http://202.112.191.194/file/gz/2cd4eae05d961f8afe9ad99fb20288d4e735fbf4/vislab.bjmu.edu.cn/apps/koreader/ota/koreader-kindle-arm-linux-gnueabi-v2014.11-348-gddc3619.tar.gz
[following]
--2015-09-26 10:55:55--
http://202.112.191.194/file/gz/2cd4eae05d961f8afe9ad99fb20288d4e735fbf4/vislab.bjmu.edu.cn/apps/koreader/ota/koreader-kindle-arm-linux-gnueabi-v2014.11-348-gddc3619.tar.gz
```
2015-09-26 12:21:00 +08:00
NiLuJe
89e8e4297c DroidFallbackFull went buh-bye, don't break the recipe by failing so near the
end ;).
2015-09-04 23:11:25 +02:00
Frans de Jonge
21c51a9162 Travis update
The new container-based format doesn't do sudo anymore, so there are some extensive changes.

It does, however, allow cache.

I also took the opportunity to switch to a newer busted. The root element for that now needs to be a table.
2015-08-24 16:40:52 +02:00
chrox
34ea9ac574 add datastorage module to handle data directory on various platform
On kindle, kobo and pocketbook the data directory is the current
running directory but on Android the app is installed in system
defined location and users may have no access to that location.
The same circumstances should be true for the upcoming Koreader for
Ubuntu touch, so the data directory (in which tessdata, dictionaries,
global settings, persistant defaults and probably history data are
stored) could be stored in another place.
2015-06-15 16:56:27 +08:00
NiLuJe
3fdd90cf3b Fix a few Droid font paths 2015-04-27 22:19:11 +02:00
Qingping Hou
e695a3c30d build: add luacheck for static analysis 2015-04-26 20:57:45 -04:00
chrox
2f2611af42 fix Travis test 2015-03-21 17:02:25 +08:00
chrox
0191dc6530 revert busted to v1.10.0 to avoid segmentation fault in testing 2015-03-05 17:56:03 +08:00
chrox
4053b5adac fix unit test with latest busted 2015-03-03 18:00:38 +08:00
chrox
4a23f05cc0 don't update extensions.cfg in OTA
since users may have mantained their own extensions.cfg file

The extensions.cfg file is still in the release package and users
could manually copy the `system` directory to the USB root if they
want Koreader to handle all their documents.
2015-01-22 00:14:34 +08:00
chrox
c11a2bbf1e fix ota update for PocketBook 2015-01-20 00:07:53 +08:00
chrox
73e02735e5 add missing pocketbook-toolchain target in Makefile 2015-01-18 00:17:17 +08:00
chrox
4b6d2e155c fix wrong exclusion of unused files when building pbupdate 2015-01-17 23:16:45 +08:00
chrox
5c4651a3d9 auto launch koreader when opening PDF/DJVU/EPUB/FB2 files in pocketbook 2015-01-17 09:09:36 +08:00
chrox
1cba495fe0 add PocketBook port of Koreader 2015-01-13 00:15:18 +08:00
Qingping Hou
70537f83ab build: supress make clean output 2014-10-25 19:57:31 -04:00
Qingping Hou
c1c3bcb3fe fix: various fixes for kindle dxg 2014-10-20 02:17:57 -04:00
chrox
f1f8d8dc4f make coverage target for code coverage for the unit test
so that we can easily find which module needs unit test

In order to run 'make coverage' `luacov` need to be installed
with 'sudo luarocks install luacov'.
2014-10-06 21:31:08 +08:00
chrox
fc5a248308 rename submodule koreader-base to base 2014-10-04 20:53:35 +08:00
chrox
2d3c502948 move platform dependent files into 'platform' directory 2014-10-03 18:02:50 +08:00
chrox
a4f870753e Koreader win32 port 2014-09-25 22:34:51 +08:00
chrox
87d9d21079 make templates dir since it's removed together with the pot file 2014-08-26 14:27:38 +08:00
chrox
1817a9190f remove template pot and translated po files in the main repo
aternatively the resource file(pot file) in Transifex is updated
with `make pot` and the translated files(po files) is updated with
`make po`. `make pot po` will be handled automatically on the nightly
build machine.
2014-08-26 09:59:29 +08:00
chrox
f89dfe0b06 fix making of local package in OTA for Kobo
by excluding kobo launching files that may be removed after installation
2014-08-19 15:56:41 +08:00
chrox
dc911c659e adapt DroidSansFallback file name 2014-08-19 12:11:49 +08:00
pazos
a568995778 remove wifi.sh from Makefile 2014-08-19 00:52:21 +02:00
NiLuJe
30f733f9d9 Fix utter breakage of the Kindle startup script.
I forgot to update the Makefile when I renamed the helper include...
Ooops. >_<"
2014-08-04 00:25:23 +02:00
NiLuJe
477d661e8f Add visual feedback to OTA updates on Kindle
Dry-coded
2014-08-01 19:15:35 +02:00
chrox
d9f5edf54a add 'Check update' menu and OTA update functionality 2014-08-01 12:36:36 +08:00
pazos
37d6239e20 Add wifi toggle for kobos 2014-07-19 16:32:41 +02:00
NiLuJe
2f47ae3d1b Add an installer/updater to the KUAL ext.
And also play with some CRe settings, for kicks.
2014-07-08 03:24:07 +02:00
NiLuJe
526a4f8ec1 Don't bundle launchpad on non-legacy Kindles 2014-07-04 03:53:53 +02:00
pazos
57266daec5 Fix back to nickel in 3.4.1 2014-07-03 13:40:53 +02:00
chrox
5df6768c77 fix make koboupdate since there is no bins in kobo directory now 2014-06-26 12:46:17 +08:00
pazos
b690d6aa95 standarize script names for kobos 2014-06-09 20:51:25 +02:00
Qingping Hou
0a40534688 fix(build): add git submodule sync to fetchthirdpary 2014-06-08 20:35:31 -04:00
chrox
650879ec5c now make po should be issued manually 2014-06-05 20:54:41 +08:00
Qingping Hou
f6a9c694dc refactor: update reader to use new launcher 2014-06-01 12:46:55 -04:00
chrox
54277974d2 make Android target 2014-05-29 21:09:39 +08:00
chrox
f507fd3709 various Android fix
now the android build has nearly the same features as the
Kindle/Kobo build. It's time for Android nightly build?
2014-05-29 16:07:40 +08:00
chrox
0a4a092d12 initial commit for android port of koreader
This PR just shows how far we have went to
the android port. There is still a few steps before a running
android port.
2014-05-26 23:39:10 +08:00
chrox
599c02ffcf add android build target 2014-05-25 16:19:48 +08:00
Hans-Werner Hilse
6acdf35239 don't build .mo files, we read .po now 2014-05-23 12:04:01 +02:00
chrox
71eda7a0ca busted test for frontend 2014-05-15 16:11:26 +08:00
chrox
2a80c8f24a rename customupdate to kindleupdate in Makefile 2014-05-08 21:05:19 +08:00
chrox
aa13e7ab4f reorganize launching scripts for both kindle and kobo
so that platform specific files are collected into platform
directory respectively
2014-05-08 19:56:24 +08:00
Huang Xin
4156b2edd0 Merge pull request #559 from Markismus/master
Return to Home screen for Kobo devices Mini, Touch and Aura
2014-05-08 16:30:35 +08:00
Markismus
bd4b5a11ad Added Kobo files to Makefile
I can't test on my laptop. Would these changes be enough?
2014-05-02 18:12:28 +02:00
chrox
842439cb62 update pot file for plugins 2014-04-23 23:02:45 +08:00
chrox
5c1d5c3314 add Evernote plugin to export highlights and notes
The "My Clipping" file that storing highlights and notes for Kindle
native readers could also be parsed and exported. The parser is
implemented in `evernote.koplugin/clip.lua`.

Parsed highlights and notes in one book will be packed and rendered
into html node with a slt2 template `note.tpl` that complies with
evernote markup language(ENML).

Finally the evernote client will create or update note entries and
push them to Evernote cloud.
2014-04-23 22:30:36 +08:00
chrox
6bee469ea0 add make test in Makefile and README file 2014-03-25 22:26:36 +08:00
chrox
315abd92d3 strip unnecessary parts in update packages 2014-03-09 20:09:54 +08:00
Qingping Hou
93d04839fc support for building against custom koreader-base repo 2014-01-01 16:09:29 -05:00
chrox
67f627f2fb update po file from transifex automatically on each build 2013-11-29 22:41:56 +08:00
Giorgio Micotti
7d8f13ae00 Safer installing process for Kobos 2013-09-30 23:03:39 +02:00
Giorgio Micotti
afd4a2d920 Merge branch 'master' of https://github.com/koreader/koreader 2013-09-30 12:30:27 +02:00
chrox
9fd9bb17a9 update mupdf and k2pdfopt to the latest version 2013-09-21 21:31:22 +08:00
Giorgio Micotti
be1a637c3b DO NOT MERGE initial suspend support for Kobo 2013-09-09 09:04:09 +02:00
HW
62a2c6738d consolidated Makefile, adapted to dynlib approach 2013-08-15 15:55:50 +02:00
HW
f2e0eb3dfd interim merge of latest upstream 2013-08-15 15:51:12 +02:00
Giorgio Micotti
d9b210c315 Changed "koboupdate" to be more reliable as an installation mean. 2013-08-08 12:07:40 +02:00
HW
5eeb4380e4 small fixes 2013-08-07 21:58:15 +02:00
HW
e862820638 switch to new dynamic loading library build
separate output directories are created per-architecture
2013-08-07 20:40:00 +02:00
Giorgio Micotti
1201b64d18 Add an option "make koboupdate" 2013-08-06 12:03:10 +02:00
chrox
466605e8f7 add hyphenation dictionaries in customupdate 2013-07-13 21:48:57 +08:00
Giorgio Micotti
c91e3834bb Added detection of single kobo models. Also a script to launch koreader is included and the related Makefile changes. 2013-07-10 09:10:38 +02:00
chrox
43240a7d98 add defaults.lua in emu directory 2013-07-09 15:39:27 +08:00
Qingping Hou
84801e6f51 add defaults.lua in customupdate 2013-07-01 02:58:06 -04:00
Qingping Hou
561c7902ca move defaults.lua to root directory 2013-07-01 02:55:28 -04:00
{Qingping,Dave} Hou
d0e23dd90e Merge pull request #136 from houqp/houqp-master
update koreader-base
2013-06-29 14:11:52 -07:00
Qingping Hou
38bb360f2d link ev_replay to emu dir 2013-06-28 01:53:12 -04:00
chrox
9ab9af20bf rm additional fonts in resources dir in customupdate 2013-06-16 17:17:31 +08:00
chrox
be7794eb06 add 'make fonts' command that merges additional fonts in resources into fonts pool 2013-06-16 15:45:19 +08:00
chrox
1a23787e26 add dict and tessdata directory in dist data directory 2013-05-01 13:51:40 +08:00
chrox
db56b52bed add missing sdcv 2013-04-30 20:06:01 +08:00
chrox
e71aa93a97 add sdcv in customupdate 2013-04-30 18:46:04 +08:00
chrox
936dfc6fd1 add text highlight in both reflow and non-reflow mode 2013-04-24 06:59:52 +08:00
Qingping Hou
3e6005b3af replace i18n with MO_DIR 2013-04-09 20:13:23 -04:00
chrox
b7e0cb2c80 Makefile fix
i. add make mo in rule of make all
ii. make make customupdate depend on make all
iii. copy i18n in current directory
2013-04-09 21:01:02 +08:00
Qingping Hou
d4cec9956d link i18n dir in emu 2013-04-08 11:27:39 -04:00
Qingping Hou
9f267ef5fd add i18n to bootstrapemu target 2013-04-08 11:25:31 -04:00
Qingping Hou
95b2442a49 add target to generate mo files 2013-04-08 03:21:03 +08:00
Qingping Hou
4747cd6a8a add gettext related target to Makefile 2013-04-08 03:05:32 +08:00
Qingping Hou
8968efeb72 copy i18n in customupdate 2013-04-07 16:24:36 +08:00
Qingping Hou
4ccf5a57e3 a little bit code cleanup 2013-04-03 12:43:58 +08:00
Qingping Hou
0285475bac make history directory in bootstrapemu target 2013-04-03 12:29:13 +08:00
chrox
1d775c27a6 rename kpdf.sh to koreader.shin in customupdate 2013-03-25 16:49:41 +08:00
Qingping Hou
b096af45a2 define KOR_BASE at the top of Makefile 2013-03-24 17:27:20 -04:00
Qingping Hou
c3fb3fb7db fix typo 2013-03-24 17:06:49 -04:00
Qingping Hou
c70520dedf add KOR_BASE variable in Makefile 2013-03-24 17:04:32 -04:00
Qingping Hou
221bc10404 add bootstrapemu target and update README 2013-03-24 15:11:21 -04:00
Qingping Hou
23435317ce add emulation bootstrap target in makefile & update README 2013-03-25 00:18:53 +08:00
Qingping Hou
9546c5503b update reader name in customupdate to koreader 2013-03-24 23:52:39 +08:00
Qingping Hou
7d60a4a44f generate git-rev on package build 2013-03-24 23:38:27 +08:00
HW
fb317810fa Some adaptions needed after refactoring 2013-03-24 15:08:42 +01:00
HW
6a92cb99e8 Step #3 factoring out the frontend code
This is a first try, but some work is still needed to bring the
build system back into shape.
2013-03-24 13:25:52 +01:00
Qingping Hou
8d2e5128b6 remove kite in favor of KUAL 2013-02-18 18:45:24 -05:00
chrox
6e858a980b add extensions directory in customupdate 2013-02-18 18:33:48 -05:00