Commit Graph
12 Commits
Author SHA1 Message Date
Benoit Pierre 9eb45af16e tools/mkrelease: prefer type -P command over which command (#15190)
The former is a bash builtin, the later is an external executable that
may not be installed (e.g. in openSUZE Tumbleweed Docker image).
2026-03-26 19:57:31 +01:00
Benoit Pierre a2a9dfe2f7 tools/mkrelease: tweak xz compression parameters
For a generally faster multi-threading compression speed, with only a very minor size increase.
2026-03-15 23:00:26 +01:00
Benoit Pierre 7879e05245 tools/mkrelease: add option to keep links 2026-03-15 23:00:26 +01:00
Benoit Pierre b86f21ac03 tools/mkrelease: tweak default compression levels
Use maximum compression levels (while avoiding ZSTD ultra levels).
2025-10-26 16:14:17 +01:00
Benoit Pierre 5a598c5712 tools/mkrelease: minor optimization
Reduce the size of terminating empty blocks when creating a TAR.
2025-10-26 16:14:17 +01:00
Benoit Pierre e18ea6c821 tools/mkrelease: don't include directories themselves
They are no case of empty directory we would need to keep.
2025-10-26 16:14:17 +01:00
Benoit Pierre e39db36954 tools/mkrelease: handle corner case (#14369)
7z shows an empty CRC for empty files when generating an archive manifest:
```
▸ mkdir dir
▸ touch dir/empty
▸ echo foobar >dir/foobar
▸ 7z a test.7z dir
[…]

▸ 7z -ba h dir
                        dir
B22C9747             7  dir/foobar
00000000             0  dir/empty

▸ 7z -ba -slt l test.7z
Path = dir
Size = 0
Packed Size = 0
Modified = 2025-09-27 22:55:25.7947183
Attributes = D drwxr-xr-x
CRC =
Encrypted = -
Method =
Block =

Path = dir/empty
Size = 0
Packed Size = 0
Modified = 2025-09-27 22:43:34.0722990
Attributes = A -rw-r--r--
CRC =
Encrypted = -
Method =
Block =

Path = dir/foobar
Size = 7
Packed Size = 11
Modified = 2025-09-27 22:55:25.7947183
Attributes = A -rw-r--r--
CRC = B22C9747
Encrypted = -
Method = LZMA2:12
Block = 0
```
2025-09-28 00:30:18 +02:00
Benoit Pierre 9017bccaba tools/mkrelease: fix shellcheck 0.11.0 false positive (#14169) 2025-08-15 10:25:37 +02:00
Benoit Pierre 9b3cf826cc tools/mkrelease: tweak tar command
Add `--numeric-owner` for a very minor size reduction.
2025-06-24 20:22:23 +02:00
Benoit Pierre 2f8f95a2d6 tools/mkrelease: fix ZSTD compressed TAR format extension (#13887) 2025-05-30 12:23:26 +02:00
Benoit Pierre 14ddbbfcd3 tools/mkrelease: fix bug in AWK helpers (#13847)
The manifest entry for `koreader/frontend/socketutil.lua` is wrong:
```
koreader/frontend/socketutil.lua/
```
That's because the CRC for that file (0E376639) compare as a false value
when used conditionally with `if (0E376639)`. The correct way to check
for an empty string is to use: `if (0E376639 != "")`.

NOTE: no impact that I could see on the actual generated archive, e.g.
for kindlepw2: the file is still included.
2025-05-24 00:35:09 +02:00
Benoit Pierre c04023f1d1 make: factorize code for generating release updates (#12655)
Instead of splitting remove / exclusion of unwanted files in 2-3 places
(`all` rule, `update` rule, and update script in some cases), install
the same files in debug & release builds, and exclude unwanted stuff
when generating the update.

This should finally fix the CI issue with OCR tests (since we don't
remove the `data/dict` & `data/tessdata` directories on release build
anymore).
2024-11-23 20:48:37 +01:00