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

428 Commits

Author SHA1 Message Date
Martín Fernández
7bded465eb
SDL: add flatpak flavor (#11833)
* ship metadata with generic linux binaries
* append release version & data at build time
2024-05-18 13:21:59 +02:00
Benoit Pierre
25d29aca4a
android: fix building with kodev (#11817)
If the Android NDK and/or SDK are not setup, `kodev` will try to invoke
the `android-ndk` and/or `android-sdk` make targets.  This can't be done
with `TARGET=android`, as `base/Makefile.defs` will error out trying to
call the (missing) compiler to get the target machine. Those rules need
to be available to all targets.
2024-05-14 10:30:15 +02:00
Martín Fernández
2c6808ba78
Add generic Linux package (#9351)
Relates to https://github.com/koreader/koreader/issues/9268
Requires https://github.com/koreader/koreader-base/pull/1504

Usage: 
- `kodev release linux` for native package (same arch as host)
- `LINUX_ARCH=arm release linux` for armhf on a x86_64 host.
- `LINUX_ARCH=arm64 release linux` for arm64 on a x86_64 host.

It produces a `koreader-linux-$ARCH-$VERSION.tar.xz` archive, where $ARCH follows `uname -m` convention {x86_64, armv7l, aarch64}

To generate the debian package from the generic archive the following command is required

`./platform/linux/do_debian_package.sh path_to.tar.xz`
2024-05-13 12:11:11 +02:00
Benoit Pierre
8c0362f9ed make: ignore thirdparty directory when installing 2024-05-12 09:48:15 +02:00
Benoit Pierre
5a146414db make: symlink fonts / plugins on install 2024-05-12 09:48:15 +02:00
Benoit Pierre
49e3251e7b make: support changing the build / install directory location 2024-05-12 09:48:15 +02:00
Benoit Pierre
f749fc2fd9 make: move target specific rules to dedicated files 2024-05-12 09:48:15 +02:00
Benoit Pierre
417d56b440 make: small improvement
Avoid duplicate `make -C base` call when building from scratch, as well
as support avoiding the remaining call (using `make --assume-old=base`).
2024-05-12 09:48:15 +02:00
Benoit Pierre
a4526633dd make: reduce the number of $(shell …) calls
Through use of `$(INSTALL_DIR)`.
2024-05-12 09:48:15 +02:00
Benoit Pierre
5efba26d80 make: ensure base/Makefile.defs can be included
Automatically run `fetchthirdparty`.
2024-05-12 09:48:15 +02:00
Benoit Pierre
3f8f87d294 make: minor cleanup 2024-05-12 09:48:15 +02:00
Benoit Pierre
8b8258b44a make: speedup fetchthirdparty
- shallow clone submodules configured as such
- on CI, shallow clone all submodules
- use 3 jobs
2024-04-16 18:58:45 +02:00
Benoit Pierre
ad6607cb4c
make: improve appimageupdate rule, take 2 (#11671)
The FUSE detection is false positive under Gitlab's pipeline,
so just use the hidden `--appimage-extract-and-run` option to
automatically and always "extract & run" the appimage tool.
2024-04-11 22:07:09 +02:00
Frans de Jonge
f93cc6e916
[AppImage] AppImageTool 13 (#5275) (#11665)
https://github.com/AppImage/AppImageKit/releases/tag/13
2024-04-11 19:07:02 +02:00
Benoit Pierre
8b4b3025eb
make: improve appimageupdate rule (#11669)
Instead of trying to detect if running under Docker, use a simpler
wildcard check to detect if FUSE support is available. This as the
advantage of supporting Docker, rootless Docker, and Podman.
2024-04-11 19:06:41 +02:00
Benoit Pierre
0dbfac22b0
make: fix appimageupdate rule (#11662)
Update sdnio library soversion to account for new docker image based on Ubuntu 20.04.
2024-04-11 09:08:03 +02:00
Benoit Pierre
c503e9e848
make: fix test rule (#11659)
Use the same code as in base (Cf. https://github.com/koreader/koreader-base/pull/1756).
2024-04-10 22:48:47 +02:00
Benoit Pierre
3ac8a67c6d android: update to use NDK 23c 2023-07-10 22:46:53 +02:00
Benoit Pierre
ded5558b88 android: speed up development cycle
Don't recreate `assets.7z` from scratch every time, and also
ensure it's reproducible to avoid busting gradle's cache.
2023-07-10 22:46:53 +02:00
NiLuJe
7e98b9de4b
PM: Minor refactor to suspend/resume code flow (#10426)
Make sure we only send Suspend/Resume events when we *actually* suspend/resume. This is done via the Device `_beforeSuspend`/`_afterResume` methods, and those were called by the *input handlers*, not the PM logic; which means they would fire, while the PM logic could actually take a smarter decision and *not* do what the event just sent implied ;).

(i.e., sleep with a cover -> suspend + actual suspend, OK; but if you then resume with a button -> input assumes resume, but PM will actually suspend again!).

Existing design issue made more apparent by #9448 ;).

Also fixes/generalizes a few corner-cases related to screen_saver_lock handling (e.g., don't allow USBMS during a lock).

And deal with the fallout of the main change to the Kobo frontlight ramp behavior ;).
2023-05-18 23:13:43 +02:00
NiLuJe
54fae2987e
Support Android AArch64 (#9645)
c.f., https://github.com/koreader/koreader-base/pull/1540 & https://github.com/koreader/android-luajit-launcher/pull/390
2022-10-25 01:54:18 +02:00
yparitcher
02ce99b231
Build: Make sure the STL has proper permissions (#9478) 2022-09-05 06:04:52 +02:00
NiLuJe
0967098a0d
Ship the STL if need be (#9470)
c.f., https://github.com/koreader/koreader-base/pull/1513 for the gory details ;).
2022-09-04 17:17:08 +02:00
zwim
41e78b6ed3
userpatch: allow monkey-patching KOReader (#9104)
Supersede old android-only patch.lua.
2022-06-25 22:46:43 +02:00
NiLuJe
a83a129c40
Unbreak Kobo build (#8882)
Regression since #8833
2022-03-09 00:10:09 +01:00
Martín Fernández
9f097da4f0
Bump android backend (#7813)
* Bumps the target Sdk to Android 11 (API30)
* Add a crash handler
2021-06-07 17:13:34 +02:00
Martín Fernández
247166b3df
android: keep bundled version in a dedicated text file (#7649) 2021-05-10 13:12:18 +02:00
poire-z
daefdc96e9 Remove PNG icons, add koreader.svg
Also move Mac specific resource in platform/mac/.
2020-12-19 14:49:18 +01:00
Martín Fernández
3142f98e20
add target: debian-arm64 (#6909) 2020-12-11 23:22:00 +01:00
Frans de Jonge
8223d01b5d
Quote PATH (#6948)
Should be done regardless, not sure why it was in base but not in front, but also somewhat related to #6354 and #6947. Otherwise a value like `c/Program Files (x86)` causes a syntax error.
2020-12-04 16:15:48 +01:00
Martín Fdez
616911d314 exclude libs/ from 7z file 2020-12-03 20:49:45 +01:00
Martín Fdez
6d614b9413 Switch compression to lzma2 2020-12-03 20:49:45 +01:00
Martín Fernández
1468646aa5
Android bundle update (#6870)
- adaptative icons
- minify + shrink
- remove unused assets to save a few KBs
- install apk by clicking on notification after download (doesn't apply to F-Droid)
2020-11-13 00:50:24 +01:00
ezdiy
ac3c97af49
Pocketbook: Use a single launcher (#6814)
* Pocketbook: Use a single launcher and make the system one a "symlink"
2020-10-26 13:11:27 +01:00
NiLuJe
6bfa021689
Unbreak OTAs on PB (#6722)
Forgot to ship the spinning_zsync helper script...
2020-09-27 23:15:48 +02:00
Martín Fernández
2263931b99
Pocketbook misc fixes (#6633)
After the awesome work made by @ezdiy:

- Remove empty dir from release zip
- Remove misc files (txt, md, html, gif) to prevent displaying them in PB library
- Do not asociate executable files (sh and py for the moment), just openable files
- Rename the font sample from html to template (to prevent wiping it during clean)
2020-09-12 10:47:35 +02:00
ezdiy
c9a339ead0
Pocketbook: File handling OS integration (#6617)
* Show opened file in task manager
* Remember file to open on power-off
* Perform file associations
2020-09-01 17:52:16 +02:00
zwim
20a96fe854
better zip compression (#6587) 2020-08-29 16:38:29 +02:00
Martín Fdez
bdbebb9e08 standalone osx application bundle 2020-08-05 13:04:06 +02:00
Martín Fernández
9bee4e495a mac app fixes 2020-07-22 14:41:11 +02:00
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