Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions anda/tools/tg-ws-proxy/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "tg-ws-proxy.spec"
}
}
11 changes: 11 additions & 0 deletions anda/tools/tg-ws-proxy/tg-ws-proxy.desktop
Original file line number Diff line number Diff line change
@@ -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;
13 changes: 13 additions & 0 deletions anda/tools/tg-ws-proxy/tg-ws-proxy.service
Original file line number Diff line number Diff line change
@@ -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
67 changes: 67 additions & 0 deletions anda/tools/tg-ws-proxy/tg-ws-proxy.spec
Original file line number Diff line number Diff line change
@@ -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-devel python3-tkinter python3-gobject python3-pip libappindicator libayatana-appindicator-gtk3 ImageMagick

Requires: python3 python3-tkinter libappindicator libayatana-appindicator-gtk3

Packager: veuxit <erroor234@gmail.com>

%description
%{summary}.

%prep
%autosetup -n %{name}-%{version}


%build
python3 -m venv --system-site-packages .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 <erroor234@gmail.com>
- Initial commit
1 change: 1 addition & 0 deletions anda/tools/tg-ws-proxy/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh_tag("Flowseal/tg-ws-proxy"));
Loading