Package Details: tg-ws-proxy-cli 1.7.2-1

Git Clone URL: https://aur.archlinux.org/tg-ws-proxy-cli.git (read-only, click to copy)
Package Base: tg-ws-proxy-cli
Description: Local MTProto proxy server for partial bypassing of Telegram loading
Upstream URL: https://github.com/Flowseal/tg-ws-proxy
Licenses: MIT
Submitter: gogamlg3
Maintainer: gogamlg3 (radioxoma)
Last Packager: gogamlg3
Votes: 3
Popularity: 0.69
First Submitted: 2026-03-22 09:14 (UTC)
Last Updated: 2026-06-04 02:54 (UTC)

Latest Comments

radioxoma commented on 2026-04-19 21:34 (UTC) (edited on 2026-04-20 00:20 (UTC) by radioxoma)

Please make me co-maintainer, I would like to bump version and apply patch similar to one from @NTeditor.

NTeditor commented on 2026-03-24 16:35 (UTC)

diff --git a/PKGBUILD b/PKGBUILD
index 2cac149..c49efa2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,31 +6,21 @@ pkgdesc="Local SOCKS5 proxy server for partial bypassing of Telegram loading"
 arch=("x86_64")
 url="https://github.com/Flowseal/tg-ws-proxy"
 license=("MIT")
-depends=("python")
-makedepends=("python" "python-pip")
+depends=("python" "python-cryptography")

-source=("https://raw.githubusercontent.com/Flowseal/tg-ws-proxy/refs/heads/main/proxy/tg_ws_proxy.py"
-        "tg-ws-proxy-cli@.service")
-sha256sums=("SKIP" "SKIP")
+source=("https://raw.githubusercontent.com/Flowseal/tg-ws-proxy/refs/tags/v${pkgver}/proxy/tg_ws_proxy.py"
+        "tg-ws-proxy-cli@.service"
+        "shebang.patch")
+sha256sums=("c493d6c8f5adafa3ea51f0e7e64a28165097f622dd18b7f444136f10329cbc64"
+            "ffa78fa2b8948f4e87c22238cc0225666cdee94e7209b418f7f1f750b5c59739"
+            "d51fbca796a76a43386a2dace6c2c8b9e63692914ef8355a9213cedb7f457ec3")

-
-build() {
-  cd "$srcdir/"
-
-  python -m venv .venv
-  .venv/bin/pip install --upgrade pip
-  .venv/bin/pip install customtkinter==5.2.2 Pillow==12.1.1 psutil==7.0.0 pystray==0.19.5 pyperclip==1.9.0 cryptography==46.0.5 pyinstaller
-
-  .venv/bin/pyinstaller --clean --noconfirm --onefile  --name "$pkgname" "tg_ws_proxy.py"
-
-  rm -rf .venv
+prepare() {
+  cd "$srcdir"
+  patch -p1 --follow-symlinks -i "$srcdir/shebang.patch"
 }

 package() {
-  cd "$srcdir"
-
-  install -Dm755 "dist/$pkgname" "$pkgdir/usr/bin/$pkgname"
-
+  install -Dm755 "$srcdir/tg_ws_proxy.py" "$pkgdir/usr/bin/$pkgname"
   install -Dm644 "$pkgname@.service" "$pkgdir/usr/lib/systemd/system/$pkgname@.service"
-
 }
diff --git a/shebang.patch b/shebang.patch
new file mode 100644
index 0000000..a427751
--- /dev/null
+++ b/shebang.patch
@@ -0,0 +1,7 @@
+--- a/tg_ws_proxy.py
++++ b/tg_ws_proxy.py
+@@ -1,3 +1,4 @@
++#!/usr/bin/env python
+ from __future__ import annotations
+ 
+ import argparse

radioxoma commented on 2026-03-22 15:48 (UTC) (edited on 2026-03-23 20:51 (UTC) by radioxoma)

This is not an -git package. Use versioned links.

source=("https://raw.githubusercontent.com/Flowseal/tg-ws-proxy/refs/tags/v{$pkgdir}/proxy/tg_ws_proxy.py"
        "tg-ws-proxy-cli@.service")
sha256sums=()