Commit Graph
18 Commits
Author SHA1 Message Date
Benoit Pierre af18761160 fix common/koreader.sh arguments handling on restart (#15312)
Cf. https://github.com/koreader/koreader/pull/15271#pullrequestreview-4116067869.
2026-05-28 17:11:31 +02:00
Tomáš Janoušek 510b9abe6d handle multiple args in common/koreader.sh (#15271)
The previous handling had two problems:

- current dir only appended if argc == 1
- multiple args passed as one to reader.lua

As a result:

- `bin/koreader -v -d` doesn't work (reader.lua sees it as one arg)
- `bin/koreader -d abc.epub` doesn't work either (for the same reason)

The fix is to go through args one by one and use `set -- …` to keep them
as an array of args (preserves white-space and avoid unintended
expansions that might happen if we attempted to do some eval trickery
instead).

Note that reader.lua doesn't currently handle multiple file/dir args, so
we could instead just look at the last arg and add pwd to that one.
Unfortunately doing this in POSIX sh isn't any simpler than processing
all args. :-)

(While at it, use `$PWD` which is required by POSIX to always be
present.)

Tested with bash 5.3.9, busybox 1.37.0 and dash 0.5.12.
2026-04-21 22:59:55 +02:00
Benoit Pierre b175c972fb drop appimage target in favor of linux
Cf. koreader/kobase#2298.

The `linux` update target now build an AppImage too.

Other miscellaneous changes:
- AppImage:
  * better icons
  * update filename to conform to spec (`ApplicationName-$VERSION-$ARCH.AppImage`)
  * running from extracted contents will behave like the Linux distribution (multi-user mode)
- Debian package:
  * better icons
  * update version to include git commit
  * drop fakeroot requirement for building
  * fix dependencies (based on our targeted Ubuntu LTS: 22.04, AKA Jammy)
- Linux distribution:
  * better icons
  * improved start-up script (can be symlinked to)
2026-03-15 23:00:26 +01:00
Benoit Pierre d18736fcc4 fix appstream metadata warnings
```
P: rocks.koreader.KOReader:4: cid-contains-uppercase-letter rocks.koreader.KOReader
P: rocks.koreader.KOReader:376: screenshot-no-caption
P: rocks.koreader.KOReader:379: screenshot-no-caption
P: rocks.koreader.KOReader:382: screenshot-no-caption
```
2026-02-10 08:04:24 +01:00
Benoit Pierre db9e64c54d update metadata translations 2026-02-10 08:04:24 +01:00
Martín Fernández d6771ebe61 bump metadata translations (#13551) 2025-04-10 21:40:12 +02:00
Martín Fernández 28b72f081a update metadata translations for fdroid/flathub (#12581) 2024-10-06 17:37:58 +02:00
Martín Fernández 3fb2f18041 update tool to generate metadata translations (#11869)
* updated:

    - strings to translate
    - english metadata

* added:

    - appstream: metadata generator
    - appstream: translation of screenshot captions, if they're present.
    - appstream: link to gh release notes
2024-05-26 20:10:12 +02:00
zwim 02abbfedf1 Clear screen before zsync OTA update starts (#9114) 2022-06-08 12:09:51 +02:00
Frans de Jonge be6e9f4fe8 [CI] Minor shellcheck cleanup (#8618)
`# shellcheck disable=SC2039,SC3040` is only if you want it to pass multiple versions, but I figure there's not much reason to keep the old exception for <=0.7.1 in there.
2022-01-11 12:39:21 +01:00
Frans de Jonge 10584494ee [CI] Minor updates for ShellCheck 0.8.0 (#8605)
Cf. <https://github.com/koreader/virdevenv/pull/71#discussion_r777025218>.
2022-01-02 08:56:00 +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
NiLuJe 24f1f435de Log zsync2's output, too. (#5842)
Thanks to our good friend tee ;).

As suggested by @Frenzie on gitter ;).
2020-02-11 17:40:28 +01:00
NiLuJe 73659b6bd6 Print zsync2's output on screen (#5824)
* Also remove the temporary files when doing a full retry
* Bump base
  Pickup the required zsync2/FBInk updates
  (https://github.com/koreader/koreader-base/pull/1038)
* Actually does what it says on the tin for Abort
  i.e., cleanup temporary files
2020-02-09 05:08:46 +01:00
NiLuJe 9a20fb5836 Switch to zsync2 (#5810)
* Switch to zsync2

Requires https://github.com/koreader/koreader-base/pull/1036

* Simplify FBInk syntax

The weird-ass workarounds for -s's subopts handling are
no longer needed w/ FBInk >= 1.21.0

* Update base

* Re-enable HW dithering on Kindle
  (https://github.com/koreader/koreader-base/pull/1034)
* Update SQLite to 3.31.1
  (https://github.com/koreader/koreader-base/pull/1035)
* reMarkable port
  (https://github.com/koreader/koreader-base/pull/1023)
* zsync2
  (https://github.com/koreader/koreader-base/pull/1036)

* zsync2 means we can finally have nice things

(OpenStack backed storage)

* We also no longer need that insane workaround on ARM

* And comment out @chrox's mirror, which appears to be down.

* Warn that a malformed URL will horribly blow up in fun and interesting
ways
2020-02-04 03:14:23 +01:00
Martín Fernández 62f25351b4 use fractional sleep as a fallback for devices where usleep isn't present 2019-02-16 17:32:43 +01:00
NiLuJe 92b8d70342 [fix] If zsync eats dirt during an OTA update, allow to fallback to a full download (#4438)
* On zsync delta failure, offer to retry OTA update with a full download

Fix #4429

* Bring the "this may take a while" popup back up before full DL

Don't rebuild the local tarball for a full dl, we're ignoring it anyway
;)

Co-Authored-By: NiLuJe <ninuje@gmail.com>
2019-01-01 20:06:55 +01:00
NiLuJe ababbd7aad Enhanced visual feedback around tar & zsync! (#4194)
* Move Kindle scripts to FBInk
* Proper progress bars around tar invocations
* Spinner during zsync processing
2018-09-06 01:35:48 +02:00