Commit Graph

62 Commits

Author SHA1 Message Date
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
Kovid Goyal 1c13f9634c Restore reporting of unhandled exceptions during GUI application startup on windows
Not as nice as it was previously since errors importing the site module
will not be reported, but the python API provides no hooks for this in
Py_RunMain
2020-08-22 18:48:00 +05:30
Kovid Goyal 007b6d06ed ... 2020-08-22 18:47:59 +05:30
Kovid Goyal df70399661 Allow using ANSI escape codes on windows when writing to the console 2020-08-22 18:47:59 +05:30
Kovid Goyal bd80269072 Dont redirect stdoutstderr to NUL if it is a tty 2020-08-22 18:47:59 +05:30
Kovid Goyal e52848671a Copy in python3.dll as PyQt links against it instead of python38.dll 2020-08-22 18:47:58 +05:30
Kovid Goyal 6adbf803aa ... 2020-08-22 18:47:58 +05:30
Kovid Goyal dfb5b72eca Ensure no __pycache__ is added to pylib.zip 2020-08-22 18:47:58 +05:30
Kovid Goyal 488fe5198b Add proper paths in windows frozen build 2020-08-22 18:47:58 +05:30
Kovid Goyal 8c7c3c9061 Work on windows python3 build 2020-08-22 18:47:58 +05:30
Kovid Goyal 55214540fd Dont remove v3 port from PyQt 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 29cd8d64ea Change shebangs to python from python2
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30
Kovid Goyal 50a19e2b75 Switch to using QEMU VMs for building calibre on macOS and Windows
The VM performance is better and QEMU is more
hackable/automatable than VirtualBox. Also paves the way to do the
building on remote servers if needed.
2020-05-30 14:48:47 +05:30
Kovid Goyal f6f418fcb0 When running calibre-portable.exe popup a more useful error message if it is placed in a location with a too long path. Fixes #1866739 [Path length for calibre portable](https://bugs.launchpad.net/calibre/+bug/1866739) 2020-03-25 13:08:54 +05:30