Gitea 桌面客户端:pywebview 封装自托管仓库

This commit is contained in:
hanfuit committed 2026-11-04 19:04:11 +08:00
commit 36155b5ae9
4 files changed
+125

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
# Gitea 客户端
把自托管 Gitea(`https://git.hanfuit.com`)封装成 Windows 桌面客户端。
## 功能
- 独立窗口应用(无浏览器地址栏/标签栏)
- 直接加载自托管 Gitea 仓库页面
- 窗口标题「灵宝仙尊代码仓库」,默认 1280×800
## 技术栈
- Python + pywebview(桌面窗口)
- PyInstaller(打包 exe)
## 使用
双击 `dist/Gitea客户端.exe` 即可运行。
## 自定义
修改 `main.py` 顶部的变量:
```python
GITEA_URL = "https://git.hanfuit.com" # 仓库地址
WINDOW_TITLE = "灵宝仙尊代码仓库" # 窗口标题
WIDTH = 1280 # 窗口宽度
HEIGHT = 800 # 窗口高度
```
## 重新打包
```bash
python -m PyInstaller --noconfirm --clean "Gitea客户端.spec"
```
产物在 `dist/Gitea客户端.exe`。