Files
OSU-Public-Wi-Fi-Login/winsw/README.md

18 lines
711 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# WinSW
推荐先用 PyInstaller 生成 `dist\osu-wifi-login\osu-wifi-login.exe`,再把 WinSW 放进同一个发布目录。
1. 下载 WinSW x64 可执行文件,并重命名为 `osu-wifi-login-service.exe`
2. 将它放到 `dist\osu-wifi-login\`
3.`config.yaml` 放到 `dist\osu-wifi-login\`
4.`dist\osu-wifi-login\` 创建与 exe 同名的 `osu-wifi-login-service.xml`
5. 以管理员 PowerShell 运行:
```powershell
Set-Location .\dist\osu-wifi-login
.\osu-wifi-login-service.exe install
.\osu-wifi-login-service.exe start
```
如果你选择 `WiFi@OSU` 并启用随机 MAC服务账户需要有管理员权限否则无法写注册表并重启网卡。默认配置关闭随机 MAC。