Add main.py
This commit is contained in:
parent
7c0d8e714a
commit
a4483af82a
52
main.py
Normal file
52
main.py
Normal file
@ -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/
|
||||||
Loading…
x
Reference in New Issue
Block a user