From 9ae1c3078629d89f9b62c30c659e0bb8e75ba6c9 Mon Sep 17 00:00:00 2001 From: veuxit <232229112+veuxit@users.noreply.github.com> Date: Sun, 3 May 2026 11:51:46 +0500 Subject: [PATCH 1/7] add: tg-ws-proxy --- anda/tools/tg-ws-proxy/anda.hcl | 5 ++ anda/tools/tg-ws-proxy/tg-ws-proxy.desktop | 11 ++++ anda/tools/tg-ws-proxy/tg-ws-proxy.service | 13 +++++ anda/tools/tg-ws-proxy/tg-ws-proxy.spec | 67 ++++++++++++++++++++++ anda/tools/tg-ws-proxy/update.rhai | 1 + 5 files changed, 97 insertions(+) create mode 100644 anda/tools/tg-ws-proxy/anda.hcl create mode 100644 anda/tools/tg-ws-proxy/tg-ws-proxy.desktop create mode 100644 anda/tools/tg-ws-proxy/tg-ws-proxy.service create mode 100644 anda/tools/tg-ws-proxy/tg-ws-proxy.spec create mode 100644 anda/tools/tg-ws-proxy/update.rhai diff --git a/anda/tools/tg-ws-proxy/anda.hcl b/anda/tools/tg-ws-proxy/anda.hcl new file mode 100644 index 00000000000..596082b1acf --- /dev/null +++ b/anda/tools/tg-ws-proxy/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "tg-ws-proxy.spec" + } +} diff --git a/anda/tools/tg-ws-proxy/tg-ws-proxy.desktop b/anda/tools/tg-ws-proxy/tg-ws-proxy.desktop new file mode 100644 index 00000000000..6462ee54444 --- /dev/null +++ b/anda/tools/tg-ws-proxy/tg-ws-proxy.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Name=TG WS Proxy +GenericName=Telegram Proxy +Comment=Telegram Desktop WebSocket Bridge Proxy +Exec=tg-ws-proxy +Icon=tg-ws-proxy +Terminal=false +Categories=Network; +StartupNotify=true +Keywords=telegram;proxy;websocket; \ No newline at end of file diff --git a/anda/tools/tg-ws-proxy/tg-ws-proxy.service b/anda/tools/tg-ws-proxy/tg-ws-proxy.service new file mode 100644 index 00000000000..30c584ca1f4 --- /dev/null +++ b/anda/tools/tg-ws-proxy/tg-ws-proxy.service @@ -0,0 +1,13 @@ +[Unit] +Description=Local MTProto proxy server for partial bypassing of Telegram loading +After=graphical-session.target +PartOf=graphical-session.target + +[Service] +Type=simple +ExecStart=/usr/bin/tg-ws-proxy +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=default.target \ No newline at end of file diff --git a/anda/tools/tg-ws-proxy/tg-ws-proxy.spec b/anda/tools/tg-ws-proxy/tg-ws-proxy.spec new file mode 100644 index 00000000000..d14038fafa1 --- /dev/null +++ b/anda/tools/tg-ws-proxy/tg-ws-proxy.spec @@ -0,0 +1,67 @@ +%global debug_package %{nil} + +Name: tg-ws-proxy +Version: 1.6.5 +Release: 1%?dist +Summary: Local MTProto proxy server for partial bypassing of Telegram loading + +License: MIT +URL: https://github.com/Flowseal/tg-ws-proxy +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz +Source1: tg-ws-proxy.desktop +Source2: tg-ws-proxy.service + +BuildRequires: python3 python3-tkinter python3-pip libappindicator libayatana-appindicator-gtk3 ImageMagick + +Requires: python3 python3-tkinter libappindicator libayatana-appindicator-gtk3 + +Packager: veuxit + +%description +%{summary}. + +%prep +%autosetup -n %{name}-%{version} + + +%build +python -m venv .venv + .venv/bin/pip install --upgrade pip + .venv/bin/pip install "." + .venv/bin/pip install "pyinstaller" + .venv/bin/pyinstaller --noconfirm packaging/linux.spec + +rm -rf .venv + +%install +install -Dm 755 dist/TgWsProxy %{buildroot}%{_bindir}/tg-ws-proxy + +magick "icon.ico" -background none -alpha on tg-ws-proxy.png + +install -Dm644 tg-ws-proxy.png %{buildroot}%{_hicolordir}/64x64/apps/tg-ws-proxy.png + +install -Dm644 %{SOURCE1} %{buildroot}%{_appsdir}/tg-ws-proxy.desktop + +install -Dm644 %{SOURCE2} -t %{buildroot}/%{_unitdir} + +%post +%systemd_post tg-ws-proxy.service + +%preun +%systemd_preun tg-ws-proxy.service + +%postun +%systemd_postun_with_restart tg-ws-proxy.service + +%files +%doc docs/README.md docs/CfProxy.md +%license LICENSE +%{_bindir}/tg-ws-proxy +%{_hicolordir}/64x64/apps/tg-ws-proxy.png +%{_unitdir}/tg-ws-proxy.service +%{_appsdir}/tg-ws-proxy.desktop + + +%changelog +* Sun May 3 2026 veuxit +- Initial commit diff --git a/anda/tools/tg-ws-proxy/update.rhai b/anda/tools/tg-ws-proxy/update.rhai new file mode 100644 index 00000000000..a51f4444e95 --- /dev/null +++ b/anda/tools/tg-ws-proxy/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_tag(Flowseal/tg-ws-proxy)); From ef2d565a014e00546925fb10773faa736c85b035 Mon Sep 17 00:00:00 2001 From: veuxit <232229112+veuxit@users.noreply.github.com> Date: Sun, 3 May 2026 11:58:47 +0500 Subject: [PATCH 2/7] fix: app --- anda/tools/tg-ws-proxy/tg-ws-proxy.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/tools/tg-ws-proxy/tg-ws-proxy.spec b/anda/tools/tg-ws-proxy/tg-ws-proxy.spec index d14038fafa1..cdb9ad0a361 100644 --- a/anda/tools/tg-ws-proxy/tg-ws-proxy.spec +++ b/anda/tools/tg-ws-proxy/tg-ws-proxy.spec @@ -25,7 +25,7 @@ Packager: veuxit %build -python -m venv .venv +python -m venv --system-site-packages .venv .venv/bin/pip install --upgrade pip .venv/bin/pip install "." .venv/bin/pip install "pyinstaller" From 22177c4f609f6e476e27ba26798424356fdc07a4 Mon Sep 17 00:00:00 2001 From: veuxit <232229112+veuxit@users.noreply.github.com> Date: Sun, 3 May 2026 12:14:14 +0500 Subject: [PATCH 3/7] python3 --- anda/tools/tg-ws-proxy/tg-ws-proxy.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/tools/tg-ws-proxy/tg-ws-proxy.spec b/anda/tools/tg-ws-proxy/tg-ws-proxy.spec index cdb9ad0a361..0554d900cbf 100644 --- a/anda/tools/tg-ws-proxy/tg-ws-proxy.spec +++ b/anda/tools/tg-ws-proxy/tg-ws-proxy.spec @@ -25,7 +25,7 @@ Packager: veuxit %build -python -m venv --system-site-packages .venv +python3 -m venv --system-site-packages .venv .venv/bin/pip install --upgrade pip .venv/bin/pip install "." .venv/bin/pip install "pyinstaller" From 57e1245d5042b4debf16b6f1cbecfa027145236d Mon Sep 17 00:00:00 2001 From: veuxit <232229112+veuxit@users.noreply.github.com> Date: Sun, 3 May 2026 12:18:52 +0500 Subject: [PATCH 4/7] pyinstaller==6.13.0 --- anda/tools/tg-ws-proxy/tg-ws-proxy.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/tools/tg-ws-proxy/tg-ws-proxy.spec b/anda/tools/tg-ws-proxy/tg-ws-proxy.spec index 0554d900cbf..abef7605a97 100644 --- a/anda/tools/tg-ws-proxy/tg-ws-proxy.spec +++ b/anda/tools/tg-ws-proxy/tg-ws-proxy.spec @@ -28,7 +28,7 @@ Packager: veuxit python3 -m venv --system-site-packages .venv .venv/bin/pip install --upgrade pip .venv/bin/pip install "." - .venv/bin/pip install "pyinstaller" + .venv/bin/pip install "pyinstaller==6.13.0" .venv/bin/pyinstaller --noconfirm packaging/linux.spec rm -rf .venv From c4d5be32fcf88290463731af5ce2dd54d7d09142 Mon Sep 17 00:00:00 2001 From: veuxit <232229112+veuxit@users.noreply.github.com> Date: Sun, 3 May 2026 12:25:02 +0500 Subject: [PATCH 5/7] ?? --- anda/tools/tg-ws-proxy/tg-ws-proxy.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/tools/tg-ws-proxy/tg-ws-proxy.spec b/anda/tools/tg-ws-proxy/tg-ws-proxy.spec index abef7605a97..e1970f7b176 100644 --- a/anda/tools/tg-ws-proxy/tg-ws-proxy.spec +++ b/anda/tools/tg-ws-proxy/tg-ws-proxy.spec @@ -11,7 +11,7 @@ Source0: %{url}/archive/refs/tags/v%{version}.tar.gz Source1: tg-ws-proxy.desktop Source2: tg-ws-proxy.service -BuildRequires: python3 python3-tkinter python3-pip libappindicator libayatana-appindicator-gtk3 ImageMagick +BuildRequires: python3 python3-tkinter python3-gobject python3-pip libappindicator libayatana-appindicator-gtk3 ImageMagick Requires: python3 python3-tkinter libappindicator libayatana-appindicator-gtk3 From 43e1913f3a2b42ca7f3be9c4a03de806b957635d Mon Sep 17 00:00:00 2001 From: veuxit <232229112+veuxit@users.noreply.github.com> Date: Sun, 3 May 2026 12:27:39 +0500 Subject: [PATCH 6/7] ??v2 --- anda/tools/tg-ws-proxy/tg-ws-proxy.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anda/tools/tg-ws-proxy/tg-ws-proxy.spec b/anda/tools/tg-ws-proxy/tg-ws-proxy.spec index e1970f7b176..85e2a6b7272 100644 --- a/anda/tools/tg-ws-proxy/tg-ws-proxy.spec +++ b/anda/tools/tg-ws-proxy/tg-ws-proxy.spec @@ -11,7 +11,7 @@ Source0: %{url}/archive/refs/tags/v%{version}.tar.gz Source1: tg-ws-proxy.desktop Source2: tg-ws-proxy.service -BuildRequires: python3 python3-tkinter python3-gobject python3-pip libappindicator libayatana-appindicator-gtk3 ImageMagick +BuildRequires: python3 python3-devel python3-tkinter python3-gobject python3-pip libappindicator libayatana-appindicator-gtk3 ImageMagick Requires: python3 python3-tkinter libappindicator libayatana-appindicator-gtk3 @@ -28,7 +28,7 @@ Packager: veuxit python3 -m venv --system-site-packages .venv .venv/bin/pip install --upgrade pip .venv/bin/pip install "." - .venv/bin/pip install "pyinstaller==6.13.0" + .venv/bin/pip install "pyinstaller" .venv/bin/pyinstaller --noconfirm packaging/linux.spec rm -rf .venv From 343a1b696b202b11a96387abac62ed6e72454d23 Mon Sep 17 00:00:00 2001 From: veuxit <232229112+veuxit@users.noreply.github.com> Date: Sun, 3 May 2026 18:19:51 +0500 Subject: [PATCH 7/7] "" --- anda/tools/tg-ws-proxy/update.rhai | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/tools/tg-ws-proxy/update.rhai b/anda/tools/tg-ws-proxy/update.rhai index a51f4444e95..9c960cefd9d 100644 --- a/anda/tools/tg-ws-proxy/update.rhai +++ b/anda/tools/tg-ws-proxy/update.rhai @@ -1 +1 @@ -rpm.version(gh_tag(Flowseal/tg-ws-proxy)); +rpm.version(gh_tag("Flowseal/tg-ws-proxy"));