This commit is contained in:
Flowseal
2026-06-17 09:54:53 +03:00
parent a29a1a8610
commit 13d2b1db6d
4 changed files with 17 additions and 7 deletions
+3 -3
View File
@@ -68,13 +68,13 @@ jobs:
" "
- name: Rename artifact - name: Rename artifact
run: mv dist/TgWsProxy.exe dist/TgWsProxy_windows_x64.exe run: mv dist/TgWsProxy.exe dist/TgWsProxy_windows.exe
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
with: with:
name: TgWsProxy-windows-x64 name: TgWsProxy-windows-x64
path: dist/TgWsProxy_windows_x64.exe path: dist/TgWsProxy_windows.exe
build-windows-arm64: build-windows-arm64:
runs-on: windows-11-arm runs-on: windows-11-arm
@@ -538,7 +538,7 @@ jobs:
> Не можете скачать? > Не можете скачать?
> Добавьте `185.199.109.133 release-assets.githubusercontent.com` в hosts или воспользуйтесь зеркалом: https://sourceforge.net/projects/tg-ws-proxy.mirror/files/ > Добавьте `185.199.109.133 release-assets.githubusercontent.com` в hosts или воспользуйтесь зеркалом: https://sourceforge.net/projects/tg-ws-proxy.mirror/files/
files: | files: |
dist/TgWsProxy_windows_x64.exe dist/TgWsProxy_windows.exe
dist/TgWsProxy_windows_arm64.exe dist/TgWsProxy_windows_arm64.exe
dist/TgWsProxy_windows_7_64bit.exe dist/TgWsProxy_windows_7_64bit.exe
dist/TgWsProxy_windows_7_32bit.exe dist/TgWsProxy_windows_7_32bit.exe
+2 -2
View File
@@ -55,7 +55,7 @@
Перейдите на [страницу релизов](https://github.com/Flowseal/tg-ws-proxy/releases) и скачайте: Перейдите на [страницу релизов](https://github.com/Flowseal/tg-ws-proxy/releases) и скачайте:
- `TgWsProxy_windows_x64.exe` (Windows 10+ x64) - `TgWsProxy_windows.exe` (Windows 10+ x64)
- `TgWsProxy_windows_arm64.exe` (Windows 10+ ARM64) - `TgWsProxy_windows_arm64.exe` (Windows 10+ ARM64)
- `TgWsProxy_windows_7_64bit.exe` (Windows 7 x64) - `TgWsProxy_windows_7_64bit.exe` (Windows 7 x64)
- `TgWsProxy_windows_7_32bit.exe` (Windows 7 x32) - `TgWsProxy_windows_7_32bit.exe` (Windows 7 x32)
@@ -117,7 +117,7 @@ Telegram Desktop → MTProto Proxy (127.0.0.1:1443) → WebSocket → Telegram D
Минимально поддерживаемые версии ОС для текущих бинарных сборок: Минимально поддерживаемые версии ОС для текущих бинарных сборок:
- Windows 10+ x64 для `TgWsProxy_windows_x64.exe` - Windows 10+ x64 для `TgWsProxy_windows.exe`
- Windows 10+ ARM64 для `TgWsProxy_windows_arm64.exe` - Windows 10+ ARM64 для `TgWsProxy_windows_arm64.exe`
- Windows 7 (x64) для `TgWsProxy_windows_7_64bit.exe` - Windows 7 (x64) для `TgWsProxy_windows_7_64bit.exe`
- Windows 7 (x32) для `TgWsProxy_windows_7_32bit.exe` - Windows 7 (x32) для `TgWsProxy_windows_7_32bit.exe`
+1 -1
View File
@@ -2,7 +2,7 @@
Перейдите на [страницу релизов](https://github.com/Flowseal/tg-ws-proxy/releases) и скачайте: Перейдите на [страницу релизов](https://github.com/Flowseal/tg-ws-proxy/releases) и скачайте:
- `TgWsProxy_windows_x64.exe` (Windows 10+ x64) - `TgWsProxy_windows.exe` (Windows 10+ x64)
- `TgWsProxy_windows_arm64.exe` (Windows 10+ ARM64) - `TgWsProxy_windows_arm64.exe` (Windows 10+ ARM64)
- `TgWsProxy_windows_7_64bit.exe` (Windows 7 x64) - `TgWsProxy_windows_7_64bit.exe` (Windows 7 x64)
- `TgWsProxy_windows_7_32bit.exe` (Windows 7 x32) - `TgWsProxy_windows_7_32bit.exe` (Windows 7 x32)
+11 -1
View File
@@ -258,19 +258,29 @@ def get_update_asset(exe_path: Path) -> Optional[Tuple[str, str]]:
pass pass
# Fallback # Fallback
import platform
import struct import struct
is_64 = struct.calcsize("P") * 8 == 64 is_64 = struct.calcsize("P") * 8 == 64
machine = platform.machine().lower()
is_arm64 = machine in ("arm64", "aarch64")
try: try:
is_modern = sys.getwindowsversion().major >= 10 is_modern = sys.getwindowsversion().major >= 10
except Exception: except Exception:
is_modern = True is_modern = True
if is_modern:
if is_arm64:
name = "TgWsProxy_windows_arm64.exe"
elif is_modern:
name = "TgWsProxy_windows.exe" name = "TgWsProxy_windows.exe"
elif is_64: elif is_64:
name = "TgWsProxy_windows_7_64bit.exe" name = "TgWsProxy_windows_7_64bit.exe"
else: else:
name = "TgWsProxy_windows_7_32bit.exe" name = "TgWsProxy_windows_7_32bit.exe"
for a in assets: for a in assets:
if a.get("name") == name: if a.get("name") == name:
return a["url"], a["name"] return a["url"], a["name"]
return None return None