44 Commits

Author SHA1 Message Date
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
Kovid Goyal
e73f7da330
Windows fix UTF-16 output when reporting unhandled exceptions 2019-11-01 19:02:46 +05:30
Kovid Goyal
1b679ae5c8
Fix some compiler warnings 2019-09-13 09:13:37 +05:30
Kovid Goyal
8901836673
Bundle distutils in the binaries as Pillow now requires it 2019-09-13 09:13:36 +05:30
Kovid Goyal
03929d5959
Fix building of calibre portable installer 2019-09-13 09:12:39 +05:30
Kovid Goyal
0a05d2f578
Disabe SetDllDirectories on 32bit builds since it causes a crash 2019-09-13 09:12:38 +05:30
Kovid Goyal
b78f584264
Add mesa DLL to windows build for machines without OpenGL such as VMs 2019-09-13 09:12:35 +05:30
Kovid Goyal
be471a8cbe
Work on getting windows running 2019-09-13 09:12:35 +05:30
Eli Schwartz
d50a6ddc1b
use context managers to open files 2019-07-25 01:30:54 -04:00
Kovid Goyal
1be0c8ee8b
Get signing working 2019-06-19 17:59:16 +05:30
Kovid Goyal
aed78ba857
calibre now builds on windows, though for some reason the test fails 2019-06-19 17:04:35 +05:30
Kovid Goyal
947fb029d8
More work on building calibre on windows 2019-06-19 12:15:30 +05:30
Kovid Goyal
e804e48747
Start work on building calibre on windows 2019-06-19 10:06:54 +05:30