Make launcher a Windows GUI app

This commit is contained in:
every_holiday
2026-06-25 00:09:58 +09:00
parent 329bcd0c50
commit 23d5fcfcda
4 changed files with 116 additions and 112 deletions

36
EXE.md
View File

@@ -1,25 +1,33 @@
# exe Packaging
# Windows Release Packaging
## Build
Release の zip は Gitea Actions で作ります。
```powershell
.\build_exe.ps1
go build -ldflags="-H windowsgui" -o .\dist\vrc_osc.exe ./cmd\vrc_osc
go build -ldflags="-H windowsgui" -o .\dist\vrc_osc_launcher.exe ./cmd\vrc_osc_launcher
go build -o .\dist\vrwt_tool.exe ./cmd\vrwt_tool
```
This uses `PyInstaller` and writes the result to `dist\vrc_osc\`.
## 起動
## Distribution Layout
通常は `vrc_osc_launcher.exe` を起動してください。
Place these next to `vrc_osc.exe`:
- 起動時に最新 Release をチェック
- 新しい版があれば自動更新
- 更新後に本体を起動
- `config\config.toml`
- `config\secrets.toml`
- `config\guests.txt`
`vrc_osc.exe` を直接起動した場合は更新チェックしません。
## 配置
Release zip を展開したフォルダに以下を置きます。
- `vrc_osc.exe`
- `vrc_osc_launcher.exe`
- `vrwt_tool.exe`
- `config\`
- `runtime\`
`runtime\` is created on startup if it does not exist.
## Notes
- `src\common\project_paths.py` resolves paths relative to the exe when frozen.
- Keep `config\` beside the exe. The app does not look inside the PyInstaller temp directory for persistent files.
`runtime\` は起動時に作られます。