Commit Graph

77 Commits

Author SHA1 Message Date
Kovid Goyal 3596471257 Windows: Edit book: Fix a crash when using the check book tool with a book that contains malformed markup. Fixes #2045133 [Editor closes immediately if epub-check finds parsing-failures in too much text-files](https://bugs.launchpad.net/calibre/+bug/2045133)
Bloody lxml doesnt initialize libxml2 correctly.
2023-12-03 22:23:29 +05:30
Kovid Goyal 00814a0f0e More WiX fixes 2023-11-13 19:21:36 +05:30
Kovid Goyal 6290f15f93 Remove installer pdb file 2023-11-13 19:21:36 +05:30
Kovid Goyal d2b976d866 Remove portable installer manifest file as it is embedded 2023-11-13 19:21:36 +05:30
Kovid Goyal 516a203d09 More WiX porting 2023-11-13 19:21:36 +05:30
Kovid Goyal 036f7ba5e4 More WiX porting 2023-11-13 19:21:35 +05:30
Kovid Goyal 6fe8e094f5 Support openssl's legacy module on windows as well
Le sigh
2023-11-13 19:21:35 +05:30
Kovid Goyal 299a5788e2 ... 2023-11-13 19:21:35 +05:30
Kovid Goyal a4237b7814 Automated translation of wxs file for wix 4 2023-11-13 19:21:35 +05:30
Kovid Goyal 85d899461d Start work on porting wix 2023-11-13 19:21:35 +05:30
Kovid Goyal 0b29da7f16 Update VM definitions 2023-11-13 19:21:35 +05:30
Kovid Goyal 36203a7497 Functions to optimize and encode webp images 2023-04-22 13:22:48 +05:30
Kovid Goyal d1a6bfa7b5 Windows build: Double the stack size
Python assumes a stack size of 2MB on windows. The windows default is
1MB. Presumably whoever builds python.exe changes it. Do the same to
avoid crashes due to too much recursion. Fixes #2000888 [BS4 str(soup) crashes Calibre instead of raising RecursionError](https://bugs.launchpad.net/calibre/+bug/2000888)
2023-01-04 15:58:41 +05:30
Kovid Goyal 168718e3e7 Windows builds: sign DLLs in addition to EXEs
Apparently Microsoft's latest pointless bit of security theatre now wants
DLLs signed in addition to EXEs. Because of course, executable code can
only be in DLLs and EXEs. Roll eyes.

Fixes #1997486 [calibre does not start when Win 11´s smart app control is activated](https://bugs.launchpad.net/calibre/+bug/1997486)
2022-11-23 09:10:24 +05:30
xxyzz 5c12e51ef1 Add USER_SITE to site.py to fix error in pip 2022-11-04 15:13:18 +08:00
Charles Haley ab55120f90 Fix an amusing typo. :)
This is a second commit, removing the white space processing my editor did.
I thought I had made a PR but there is no record of it. Apologies if this is a duplicate.
2022-07-16 16:22:13 +01:00
Kovid Goyal 55b3cfaf12 Fix EXE manifest
Only Microsoft could come up with something so byzantine and prone to
silent failure
2022-07-11 13:13:27 +05:30
Kovid Goyal b8c00070d8 Implement a proper check for Win10 in the MSI based on the build number from the registry 2022-07-11 12:00:19 +05:30
Kovid Goyal baf07dde67 Prevent the portable installer from running on windows older than w10 2022-07-11 11:22:32 +05:30
Kovid Goyal 58e8bf98cd Change the minimum version on windows to 10 in the installer
Qt 6 does not support windows 8. https://www.qt.io/blog/qt6-development-hosts-and-targets
2022-07-11 11:02:00 +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 df89c9f251 Automatically uninstall 32-bit calibre on windows when installing 2022-07-06 19:19:39 +05:30
Kovid Goyal ecf9f103d6 Get the portable installer building on 64bits 2022-07-06 19:19:39 +05:30
Kovid Goyal 2d0429ebce Fix a couple of compiler warnings 2022-07-06 19:19:39 +05:30
Kovid Goyal 5db39aa16e Drop 32-bit code paths 2022-07-06 19:19:39 +05:30
Kovid Goyal 271f988b72 Fix windows build 2022-07-06 19:19:38 +05:30
Kovid Goyal fb5e0bf2c9 Get it building on windows 2022-07-06 19:19:38 +05:30
Kovid Goyal 055f5b0979 Add the Py_SSIZE_T_CLEAN definition needed for python 3.10
Ideally someone needs to go through all the code and check that nothing
breaks because of this macro, but, I dont have that kind of time
2021-12-01 10:47:51 +05:30
Christian Clauss 3e81179175 Fix more typos 2021-10-02 17:15:24 +02:00
Christian Clauss 5852ac2eb4 fixup! 2021-10-02 04:04:07 +02:00
Christian Clauss 9173d4edf9 Fix typos 2021-10-02 04:02:43 +02:00
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 2cce7e2eca Fix #1938465 [[Enhancement] Change tooltip of calibre Windows icon](https://bugs.launchpad.net/calibre/+bug/1938465) 2021-07-30 07:36:42 +05:30
Kovid Goyal 3848fb45d0 String changes 2021-03-27 20:39:10 +05:30
Kovid Goyal 5aec473530 string changes 2021-03-09 09:19:56 +05:30
Kovid Goyal 4b0f19ccfb Windows: Fix calibre portable launcher not working correctly from root directory in calibre 5.5. Fixes #1904310 [v5.5 Puts calibre-portable.exe in as a book on every launch](https://bugs.launchpad.net/calibre/+bug/1904310)
apparently, the cmdline parameter passed to winmain does not contain the
path to the EXE *except* when the exe is in the root folder. The number
of inconsistencies in the win32 API is insane.
2020-11-17 11:42:54 +05:30
Kovid Goyal 3e7296ff2b Register the calibre:// protocol during installation on Windows 2020-11-10 18:23:22 +05:30
Kovid Goyal b0da277718 Code cleanups 2020-11-01 08:59:54 +05:30
Kovid Goyal 7f5072665d Better error message when failing to launch portable exe 2020-11-01 08:22:18 +05:30
Kovid Goyal e9d1f2c25c Windows: Fix command line arguments not working for the portable.exe launchers 2020-11-01 08:18:25 +05:30
Kovid Goyal 73df11e69e Mark calibre as long path aware on Windows
Python 3.8 is supposedly long path aware and calibre itself does not use
MAX_PATH except in a few functions in the launcher/installer, and a
couple in winutil. So hopefully this means we are long path capable.
2020-10-24 09:17:27 +05:30
Kovid Goyal defa85e918 Use simplified interface for freezing 2020-10-03 12:03:21 +05:30
Kovid Goyal fe478a2cee Use the new bypy freezing code for windows build 2020-10-03 09:05:37 +05:30
Kovid Goyal eb824ef094 Remove CALIBRE_DEVELOP_FROM from site.py
It will be implemented in the bypy frozen loader instead
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 1b9318e01b calibre portable: Add launchers for standalone viewer and editor 2020-08-22 18:48:16 +05:30
Kovid Goyal ee44316ac2 Remove some __future__ imports 2020-08-22 18:48:08 +05:30
Kovid Goyal c4eedda5f2 Prevent installation on Windows 7 2020-08-22 18:48:05 +05:30
Kovid Goyal 2966a3233d Fix pycryptodome not working on windows 2020-08-22 18:48:04 +05:30
Kovid Goyal 605857e276 Only report unhandled errors if excepthook is the default 2020-08-22 18:48:00 +05:30