72 Commits

Author SHA1 Message Date
Kovid Goyal
8d97c1021b
Update onnxruntime to get it to build with Xcode 15.4 2025-03-04 06:50:24 +05:30
Kovid Goyal
04d5728ef9
More work on de-vendoring pykakasi 2024-11-12 19:52:31 +05:30
Kovid Goyal
95854ebc16
Add piper to binary macOS builds 2024-09-04 22:11:34 +05:30
Kovid Goyal
3727bc2355
Include ffmpeg backed for Qt MultiMedia on macos and windows
Qt docs indicate this is the only actually maintained backend
2024-08-23 23:13:54 +05:30
Kovid Goyal
f1f57e179a
Fix build on macOS 2024-08-16 08:59:25 +05:30
Mingye Wang
304192c10c
fix(bypy/macos/__main__): Use -Os
The launchers were getting compiled with no optimization at all. If one runs `objdump --disassemble calibre-launcher.dylib --no-show-raw-insn`, the result is a lot of loads and stores from the stack. Probably not critical at all for performance, but ugly and silly nevertheless.
2024-08-13 21:25:00 +08:00
Mingye Wang
43ae7c6a54
bypy/macos: use ULMO
ULMO, available in 10.15+, uses LZMA compression, which is both stronger and faster than the deprecated bzip2 (UDBZ).
2024-08-13 10:58:35 +08:00
Kovid Goyal
53b74283a4
sort imports in all python files 2024-03-30 13:02:22 +05:30
Kovid Goyal
8cf945252e
We only run on Ventura or later apparently 2023-11-17 16:51:15 +05:30
Kovid Goyal
958b60b39c
Fix a bunch of freeze related issues in the macOS build 2023-11-13 19:21:35 +05:30
Kovid Goyal
fcc89de564
Minimum macOS version now 11.0 2023-11-13 19:21:35 +05:30
Kovid Goyal
8bcf1aed00
Include libtiff as otherwise when building on linux various components link against the system version 2023-11-13 19:21:34 +05:30
Kovid Goyal
f37fc83754
libwebp now comes with libsharp 2023-09-17 08:10:18 +05:30
Kovid Goyal
741f195e13
Also bump apsw
apsw now uses a compiled etension module as its __init__
so support that.
2023-09-13 18:44:07 +05:30
Kovid Goyal
27981cd3aa
... 2023-06-30 07:24:16 +05:30
Kovid Goyal
fdf95531e0
macOS: Fix extra dock icons visible when doing a job using Qt WebEngine such as converting to PDF or searching in Get books. Fixes #2023395 [Multiple Dock Icons When Searching for Books](https://bugs.launchpad.net/calibre/+bug/2023395)
Apparently a recent macOS update changed some behavior. Now we need to
have LSBackgroundOnly=1 in the Info.plist for calibre-parallel otherwise
when using Qt we get a dock icon for the process. Sigh.
2023-06-12 13:50:26 +05:30
Kovid Goyal
59ba5f8d1b
Fix #2020855 [Error while saving book](https://bugs.launchpad.net/calibre/+bug/2020855) 2023-05-26 17:28:58 +05:30
Kovid Goyal
9925b1caf4
Fix #2018942 [Calibre won't build with PoDoFo 0.10.0](https://bugs.launchpad.net/calibre/+bug/2018942) 2023-05-20 21:20:20 +05:30
Kovid Goyal
36203a7497
Functions to optimize and encode webp images 2023-04-22 13:22:48 +05:30
Kovid Goyal
328d0b5758
Add zstd as a dependency
Fixes #1826 (add zstd as a dependency)
2023-04-05 16:39:47 +05:30
Kovid Goyal
d7c31f4a81
Automated fixes from ruff 2023-01-09 18:13:56 +05:30
Kovid Goyal
28070b6661
FB2 Input: Fix a regression in 6.0 that broke conversion of FB2 on macOS. Fixes #1982743 [failed to convert fb2](https://bugs.launchpad.net/calibre/+bug/1982743) 2022-07-27 12:12:51 +05:30
Kovid Goyal
19f007fa9d
Linux binaries: Bundle brotli and graphite2 as well as Qt links against them 2022-07-18 19:30:24 +05:30
Kovid Goyal
5c3385476f
Switch from cchardet to uchardet
cchardet is not maintained anymore: https://github.com/PyYoshi/cChardet/issues/77

cchardet is based on uchardet with the addition of reporting encoding
detection confidence. We dont really need that, so moving to uchardet is
simplest.

See #1690 (Low effort port to charset_normalizer)
2022-07-16 15:36:28 +05:30
Kovid Goyal
424f0b8cc6
Indicate Catalina is required in Info.plist 2022-07-11 12:56:51 +05:30
Kovid Goyal
cde3ff211c
Use pdftotext to index PDF files
Much faster and less resource intensive than pdftohtml
2022-07-06 19:19:55 +05:30
Kovid Goyal
0bad6416a8
placeholder should also be a universal binary 2022-07-06 19:19:38 +05:30
Kovid Goyal
7bfa37c9bb
Fix for Apple's cheap ass freeloading on libxml2
Trillion dollar company that cant write its own XML parser. And
libxml2 is currently going begging for a lack of maintainers. Silicon
valley really makes my blood boil. Fucking armpit of the universe.
2022-07-06 19:19:38 +05:30
Kovid Goyal
8bc909debe
Bump library versions 2022-07-06 19:19:37 +05:30
Kovid Goyal
e195b3a1e2
Build universal binaries on macOS 2022-07-06 19:19:37 +05:30
Kovid Goyal
433e07fda7
Fix pyexpat not being linked against bundled libexpat 2022-02-16 15:37:56 +05:30
Zbigniew Jędrzejewski-Szmek
9d63b6ae56 Drop (object) from class definitions
Python2 had old-style classes (no "(object)"), and new style classes (with
"object"). Under Py3 this is a noop, so let's drop it to make the code
a bit shorter.
2021-09-30 09:23:56 +02:00
Kovid Goyal
fe81410c74
Fix linking of libstemmer.dylib 2021-06-25 08:45:07 +05:30
Kovid Goyal
8457379487
Add libstemmer as a dependency
Will be used for tokenizing in the new ICU based FTS tokenizer
2021-06-20 12:38:04 +05:30
Kovid Goyal
d8d1d890ea
Dont internet enable dmg images as this functionality is deprecated by Apple and not used since 10.7. The internet-enable verb was also removed from hdiutil in Catalina (10.15) 2021-05-01 14:54:34 +05:30
Kovid Goyal
2959f98698
Fix pyrcytodome not useable on macOS and Linux 2020-11-25 20:57:14 +05:30
Kovid Goyal
3dd7bc160e
Move loading of env vars to bypy. Allows defining CALIBRE_DEVELOP_FROM in env vars file 2020-11-21 12:20:54 +05:30
Kovid Goyal
9dad654fc2
Register the calibre URL on macOS as well 2020-11-11 12:34:31 +05:30
Kovid Goyal
defa85e918
Use simplified interface for freezing 2020-10-03 12:03:21 +05:30
Kovid Goyal
4e5fda27a8
Switch macOS build to use new bypy freezer 2020-10-03 09:05:36 +05:30
Kovid Goyal
7a4b3f61ff
Move to SIP v5 2020-09-16 21:52:25 +05:30
Kovid Goyal
c31ead51dc
Minor fixes for new build deps 2020-09-02 10:49:45 +05:30
Kovid Goyal
1f1d8024cb
Fix lib names for OpenSSL 1.1 2020-08-22 18:48:38 +05:30
Kovid Goyal
d2f24d6449
Update ICU version in macOS freezer 2020-08-22 18:48:08 +05:30
Kovid Goyal
55214540fd
Dont remove v3 port from PyQt 2020-08-22 18:47:57 +05:30
Kovid Goyal
411da596b4
The Apple build is working 2020-08-22 18:47:57 +05:30
Kovid Goyal
01b0fba8ad
Auto fix excess blank lines 2020-08-22 18:47:56 +05:30
Kovid Goyal
9ff27782de
Remove useless __future__ imports
Not needed on python3
2020-08-22 18:47:55 +05:30
Kovid Goyal
e082b67a6e
Fix #1856720 [Calibre activates discrete gpu on MacBook Pro](https://bugs.launchpad.net/calibre/+bug/1856720) 2019-12-17 20:56:08 +05:30
Kovid Goyal
f1ce7c0cf9
Dont exec a symlink in the codesign placeholders
Instead use the full path to the actual binary in the outermost bundle
2019-12-07 15:30:29 +05:30