-
-
Notifications
You must be signed in to change notification settings - Fork 108
add: TgWsProxy #11835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
add: TgWsProxy #11835
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| project pkg { | ||
| rpm { | ||
| spec = "tg-ws-proxy.spec" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| rpm.version(gh_tag(Flowseal/tg-ws-proxy)); | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.