目前共有5篇帖子。 字體大小:較小 - 100% (默認)▼  內容轉換:不轉換▼
 
點擊 回復
25 4
【项目】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>

 

回復帖子

內容:
用戶名: 您目前是匿名發表
驗證碼:
(快捷鍵:Ctrl+Enter)
 

本帖信息

點擊數:25 回複數:4
評論數: ?
作者:巨大八爪鱼
最後回復:巨大八爪鱼
最後回復時間:2025-4-27 14:56
 
©2010-2025 Purasbar Ver2.0
除非另有聲明,本站採用創用CC姓名標示-相同方式分享 3.0 Unported許可協議進行許可。