Commit Graph

441 Commits (49a991e82fccbbddb92354eb79631fd7ade7666e)

Author SHA1 Message Date
Benoit Pierre 59b533a83d make: move emulator specific rules to a dedicated file 1 month ago
Benoit Pierre bd4a651fbf make: improve android update
- out-of-tree luajit-launcher build: no leftovers after `make clean`
- use the luajit library compiled by base: no point wasting time
  building a second (different, possibly incompatible) version
1 month ago
Benoit Pierre ede4ca8b36 make: improve `fetchthirdparty` rule
- fix running `make` from new checkout
- fetch all submodules recursively (don't defer to base), including luajit-launcher
1 month ago
Benoit Pierre 7ef78e606e
make: install missing `cr3.css`… (#12262) 2 months ago
Benoit Pierre f9ee2449c7
make: handle old build data directory (#12259) 2 months ago
Benoit Pierre dbebf3f996 make: tweak data install rules
Use a directory distinct from the one in base (so its entries survive
a `make base-re`), symlink the base data directory entries, and the
crengine data files directly from its checkout (since the base data
directory now only contains the bare minimum).
2 months ago
Benoit Pierre 47a2d3900f make: fix `testfront` rule
Same behavior as for base: build and install test data before running.
2 months ago
Benoit Pierre 1add3b5772 make: directly include base main makefile 2 months ago
Benoit Pierre 14f105707d make: always symlink, even for release builds (faster) 2 months ago
Benoit Pierre d83647d76e make: simplify symlink installs
Since we mandate coreutils on macOS too, we can simplify calls to `ln`.
2 months ago
Benoit Pierre d9e4376e35 make: avoid duplicate `fetchthirdparty`
When using `make fetchthirdparty` and base has not been checkout yet:
- make want to include `Makefile.defs` which is missing
- the rule for `Makefile.defs` / `fetchthirdparty` are executed
- make reload the main makefile, and execute `fetchthirdparty`
2 months ago
Benoit Pierre 040e033edb make: move android variables where they belong 2 months ago
Benoit Pierre 5a465f413b tweaks for new build system
- forward unknown make targets to base
- add `cmake` and `staging` directories to ignored output artifacts
- drop `package.path` and `package.cpath` luarocks specific entries
4 months ago
Martín Fernández 7bded465eb
SDL: add flatpak flavor (#11833)
* ship metadata with generic linux binaries
* append release version & data at build time
4 months ago
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.
4 months ago
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`
4 months ago
Benoit Pierre 8c0362f9ed make: ignore thirdparty directory when installing 4 months ago
Benoit Pierre 5a146414db make: symlink fonts / plugins on install 4 months ago
Benoit Pierre 49e3251e7b make: support changing the build / install directory location 4 months ago
Benoit Pierre f749fc2fd9 make: move target specific rules to dedicated files 4 months ago
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`).
4 months ago
Benoit Pierre a4526633dd make: reduce the number of `$(shell …)` calls
Through use of `$(INSTALL_DIR)`.
4 months ago
Benoit Pierre 5efba26d80 make: ensure `base/Makefile.defs` can be included
Automatically run `fetchthirdparty`.
4 months ago
Benoit Pierre 3f8f87d294 make: minor cleanup 4 months ago
Benoit Pierre 8b8258b44a make: speedup `fetchthirdparty`
- shallow clone submodules configured as such
- on CI, shallow clone all submodules
- use 3 jobs
5 months ago
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.
5 months ago
Frans de Jonge f93cc6e916
[AppImage] AppImageTool 13 (#5275) (#11665)
https://github.com/AppImage/AppImageKit/releases/tag/13
5 months ago
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.
5 months ago
Benoit Pierre 0dbfac22b0
make: fix `appimageupdate` rule (#11662)
Update sdnio library soversion to account for new docker image based on Ubuntu 20.04.
5 months ago
Benoit Pierre c503e9e848
make: fix test rule (#11659)
Use the same code as in base (Cf. https://github.com/koreader/koreader-base/pull/1756).
5 months ago
Benoit Pierre 3ac8a67c6d android: update to use NDK 23c 1 year ago
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.
1 year ago
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 ;).
1 year ago
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
2 years ago
yparitcher 02ce99b231
Build: Make sure the STL has proper permissions (#9478) 2 years ago
NiLuJe 0967098a0d
Ship the STL if need be (#9470)
c.f., https://github.com/koreader/koreader-base/pull/1513 for the gory details ;).
2 years ago
zwim 41e78b6ed3
userpatch: allow monkey-patching KOReader (#9104)
Supersede old android-only patch.lua.
2 years ago
NiLuJe a83a129c40
Unbreak Kobo build (#8882)
Regression since #8833
3 years ago
Martín Fernández 9f097da4f0
Bump android backend (#7813)
* Bumps the target Sdk to Android 11 (API30)
* Add a crash handler
3 years ago
Martín Fernández 247166b3df
android: keep bundled version in a dedicated text file (#7649) 3 years ago
poire-z daefdc96e9 Remove PNG icons, add koreader.svg
Also move Mac specific resource in platform/mac/.
4 years ago
Martín Fernández 3142f98e20
add target: debian-arm64 (#6909) 4 years ago
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.
4 years ago
Martín Fdez 616911d314 exclude libs/ from 7z file 4 years ago
Martín Fdez 6d614b9413 Switch compression to lzma2 4 years ago
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)
4 years ago
ezdiy ac3c97af49
Pocketbook: Use a single launcher (#6814)
* Pocketbook: Use a single launcher and make the system one a "symlink"
4 years ago
NiLuJe 6bfa021689
Unbreak OTAs on PB (#6722)
Forgot to ship the spinning_zsync helper script...
4 years ago
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)
4 years ago
ezdiy c9a339ead0
Pocketbook: File handling OS integration (#6617)
* Show opened file in task manager
* Remember file to open on power-off
* Perform file associations
4 years ago