From a4483af82a79fa6c26ad17f41b097850f93097a0 Mon Sep 17 00:00:00 2001 From: dev Date: Tue, 3 Nov 2026 21:31:12 +0000 Subject: [PATCH] Add main.py --- main.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..3253393 --- /dev/null +++ b/main.py @@ -0,0 +1,52 @@ +desktop app + + secure qtwebengine desktop app + supports proxy and direct mode + keeps login/session data between restarts + blocks external navigation + blocks popups + blocks downloads + rejects bad tls/certificate errors + keeps a single app instance + writes logs to local files + +requirements + +install: + +pip install pyside6 + +run + +python3 main.py + +or: + +python main.py + +setup + +edit in `main.py` if needed: + + upstream_url = "https://angel.33.backend-3.com" + network_mode = "proxy" # "proxy" or "direct" + +modes + +proxy mode + starts a local proxy automatically + app opens through the local proxy + +direct mode + app connects to the upstream url directly + keeps normal login/chat/session behavior + +data + +local app data is stored beside the script or bundled app: + +angelhome_data/ + logs/ + runtime/ + cache/ + storage/ \ No newline at end of file