Migrate from PyInstaller to Nuitka for compilation

This commit is contained in:
2026-07-31 13:17:09 +08:00
parent 31d31edd62
commit b5ae10db53
5 changed files with 47 additions and 23 deletions
+3 -1
View File
@@ -28,11 +28,13 @@ python main.py --refresh
## 编译为 .exe
使用 Nuitka 打包:
```powershell
powershell -ExecutionPolicy Bypass -File build.ps1
```
产物:`dist/WallpaperChanger.exe`
产物:`dist/WallpaperChanger.dist/WallpaperChanger.exe`(独立目录模式,含 exe + 依赖库)
- 双击运行 → 启动托盘
- `WallpaperChanger.exe --refresh` → 拉取并设置壁纸后退出(右键菜单用)