-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
改成bin/python-lib.bypy.frozen了 #2
Comments
请问是否有计划支持5.2版本自动化? |
暂无……目前 release 里面的 5.1.0 安装包+修改包 套件对我还够用,5.2.0之后需要编译calibre,然后编译方法之前试了一晚上没能把环境配出来于是暂时放弃了(不排除啥时候发现calibre有新功能我很想要了再折腾一遍……)……要是哪位dalao给5.2.0以上搞成功的话,欢迎把链接贴到这个issue里面,贴过来! |
说起来有没有什么能在Docker上把那套东西编译出来的办法……有人知道相关项目吗 |
使用开发者模式 修改backend.py这个文件后 都不需要编译他就可以实现这个功能了 |
哇确实🍗🍗,这个方法应该对未来的新版本都有效。实测 但是毕竟是开发者模式下运行的,与正常使用相比还是存在一些问题的 |
https://github.com/kurikomoe/calibre-utf8-path 同时编译了一个 6.10 的 Linux 版本。 |
https://github.com/kurikomoe/calibre-utf8-path At the same time, a 6.10 Linux version was compiled. |
现在的编译方法是利用 kvm 虚拟机跑编译的,Linux 上编译改改编译脚本还是比较方便的编译一份的。Windows 目前咱自己没啥需求就没有尝试编译。 |
The current compilation method is to use the kvm virtual machine to run and compile. It is more convenient to compile a copy of the compiled script on Linux. Windows At present, we have no need to try to compile. |
@kurikomoe 请教一下如何编译?我正在尝试改造成 github action,但是他这个文档讲的太不清楚了。 |
@kurikomoe Please tell me how to compile? I'm trying to transform it into a github action, but his documentation is too unclear. |
如果用 github action 的话,直接用官方的编译方法应该是不行的,github action(非 hosted)不支持嵌套虚拟化,因此无法在免费机子上启动 kvm。只能自己看一下 calibre 的 bypy repo [https://github.com/kovidgoyal/bypy.git],把 python 发往 kvm 的编译命令拉出来重写一个编译脚本。(感觉修改bypy 里面的命令发送函数,直接提取那堆 shell 指令还是可行的) 另一个想法是改 libcalibre-launcher.so 这个文件, |
If you use github action, it should not be possible to directly use the official compilation method. github action (non-hosted) does not support nested virtualization, so you cannot start kvm on a free machine. I can only look at caliber's bypy repo [https://github.com/kovidgoyal/bypy.git], pull out the compilation command sent by python to kvm, and rewrite a compilation script. (I feel that it is still feasible to modify the command sending function in bypy and directly extract the pile of shell instructions) |
昨天有空的时候跟了一下编译脚本。 BYPY_ROOT=$PWD/.. python3 bypy/linux/__main__.py
sudo ln -sf /tmp/t/frozen-*/lib/libcalibre-launcher.so /opt/calibre/lib/libcalibre-launcher.so
sudo ln -sf /tmp/t/frozen-*/lib/calibre-extensions/python-lib.bypy.frozen /opt/calibre/lib/calibre-extensions/ (bypy.git 和 calibre.git 在同一个目录下,在 calibre.git 下执行,需要手动修改 bypy.git/**/constants.py 的一些常量定义) 分析:
相关 repo(注意,需要手动 编译好的文件: |
When I was free yesterday, I followed the compilation script. BYPY_ROOT=$PWD/.. python3 bypy/linux/__main__.py
sudo ln -sf /tmp/t/frozen-*/lib/libcalibre-launcher.so /opt/calibre/lib/libcalibre-launcher.so
sudo ln -sf /tmp/t/frozen-*/lib/calibre-extensions/python-lib.bypy.frozen /opt/calibre/lib/calibre-extensions/ (bypy.git and calibre.git are in the same directory and executed under calibre.git, some constant definitions of bypy.git/**/constants.py need to be manually modified) analyze:
Relevant repo (note that a bunch of paths in |
我们不用很麻烦很累就可以用上中文路径: #6 (comment) |
We can use the Chinese path without much trouble and fatigue: #6 (comment) |
The new version of the Patch scheme: |
great job!
2023年3月28日(火) 20:53 Cirn09 ***@***.***>:
… 新版的 Patch 方案:
https://github.com/Cirn09/calibre-do-not-translate-my-path
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABX33FTJQ7DEAZR46BWWHIDW6LGKNANCNFSM4TAVM3KA>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
修改后重新编译https://github.com/kovidgoyal/calibre/blob/master/bypy/README.rst吧!
The text was updated successfully, but these errors were encountered: