设置 | 登录 | 注册

作者共发了5篇帖子。

【项目】electron-swapper

1楼 巨大八爪鱼 2025-4-27 13:56

该项目可以把已编译好的不支持xp系统的electron软件修改为支持xp系统的supermium-electron软件。

https://github.com/KenCorma/electron-swapper

2楼 巨大八爪鱼 2025-4-27 14:07
3楼 巨大八爪鱼 2025-4-27 14:08

electron-swapper项目的logo:

4楼 巨大八爪鱼 2025-4-27 14:43

因为该项目的python脚本里面有访问https://github.com/https://raw.githubusercontent.com/,而这两个网址在国内访问很不稳定。如果遇到下面的报错,说明是网络问题,多试几次就好了。

Traceback (most recent call last):
  File "swapper.py", line 192, in <module>
  File "urllib\request.py", line 216, in urlopen
  File "urllib\request.py", line 525, in open
  File "urllib\request.py", line 634, in http_response
  File "urllib\request.py", line 563, in error
  File "urllib\request.py", line 496, in _call_chain
  File "urllib\request.py", line 643, in http_error_default
urllib.error.HTTPError: HTTP Error 429: Too Many Requests
[PYI-10772:ERROR] Failed to execute script 'swapper' due to unhandled exception!

 

Traceback (most recent call last):
  File "swapper.py", line 192, in <module>
  File "urllib\request.py", line 216, in urlopen
  File "urllib\request.py", line 519, in open
  File "urllib\request.py", line 536, in _open
  File "urllib\request.py", line 496, in _call_chain
  File "urllib\request.py", line 1391, in https_open
  File "urllib\request.py", line 1352, in do_open
  File "http\client.py", line 1374, in getresponse
  File "http\client.py", line 318, in begin
  File "http\client.py", line 287, in _read_status
http.client.RemoteDisconnected: Remote end closed connection without response
[PYI-9948:ERROR] Failed to execute script 'swapper' due to unhandled exception!

 

被转换的exe的目录下必须要有LICENSE.electron.txt和LICENSES.chromium.html这两个文件。如果没有,那么必须用记事本新建空白的同名文件。
5楼 巨大八爪鱼 2025-4-27 14:56

D:\Downloads\vscode1.70.2\electron-swapper-v0.6.1>electron-swapper.exe "D:\Downloads\vscode1.70.2\Microsoft VS Code\Code.exe"
Path: D:\Downloads\vscode1.70.2\Microsoft VS Code\Code.exe
0.0.0
0.0.0
0.0.0
0.0.0
0.0.0
0.0.0
0.0.0
0.0.0
0.0.0
0.0.0
0.0.0
0.0.0
0.0.0
30.1.5
Target Version: 18.3.5 will be replaced with 30.1.5 x64. Is that Ok? y (yes) or n (no)y
Creating new shortcut
Dumping Receipt
Swap Complete

D:\Downloads\vscode1.70.2\electron-swapper-v0.6.1>

内容转换:

回复帖子
内容:
用户名: 您目前是匿名发表。
验证码:
看不清?换一张
©2010-2025 Purasbar Ver3.0 [手机版] [桌面版]
除非另有声明,本站采用知识共享署名-相同方式共享 3.0 Unported许可协议进行许可。