Skip to content

Commit 9b90337

Browse files
committed
Fixing md
1 parent 8c1329c commit 9b90337

File tree

4 files changed

+33
-20
lines changed

4 files changed

+33
-20
lines changed

INSTALLATION.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ systemctl --user enable --now onevox
2323

2424
**Windows:**
2525
```powershell
26+
$onevoxDir = "$env:LOCALAPPDATA\onevox"
2627
$asset = "onevox-windows-x86_64.zip"
2728
Invoke-WebRequest -Uri "https://github.com/kssgarcia/onevox/releases/latest/download/$asset" -OutFile $asset
28-
Expand-Archive -Path $asset -DestinationPath "$env:LOCALAPPDATA\onevox" -Force
29-
& "$env:LOCALAPPDATA\onevox\onevox.exe" --version
29+
Expand-Archive -Path $asset -DestinationPath $onevoxDir -Force
30+
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";$onevoxDir", [EnvironmentVariableTarget]::User)
31+
$env:Path += ";$onevoxDir"
32+
& "$onevoxDir\onevox.exe" --version
3033
```
3134

3235
---
@@ -244,23 +247,24 @@ Download installer from [Releases](https://github.com/kssgarcia/onevox/releases)
244247
- Models: `%LOCALAPPDATA%\onevox\onevox\cache\models\`
245248
- Logs: `%APPDATA%\onevox\onevox\data\logs\onevox.log`
246249

247-
**Daemon Management (Windows 11):**
250+
**Service Management with SCM (run PowerShell as Administrator):**
248251
```powershell
249-
# Start daemon (foreground)
250-
onevox daemon --foreground
252+
# Register service (one-time)
253+
sc.exe create Onevox binPath= "\"$env:LOCALAPPDATA\onevox\onevox.exe\" daemon --foreground" start= auto
251254
252-
# Start daemon in background shell/session
253-
onevox daemon
255+
# Start / Stop / Restart
256+
sc.exe start Onevox
257+
sc.exe stop Onevox
258+
sc.exe stop Onevox; sc.exe start Onevox
254259
255-
# Stop daemon
256-
onevox stop
260+
# Status
261+
sc.exe query Onevox
257262
258-
# Check daemon status
259-
onevox status
263+
# Remove service
264+
sc.exe delete Onevox
260265
```
261266

262-
**Auto-start on login (recommended):** Use Windows Task Scheduler to run
263-
`onevox daemon` at user logon.
267+
**Auto-start:** The `start= auto` flag above configures startup with SCM.
264268

265269
**View Logs:**
266270
```powershell

QUICKREF.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,13 @@ systemctl --user status onevox # Status
3232

3333
**Windows:**
3434
```powershell
35-
Start-Service Onevox # Start
36-
Stop-Service Onevox # Stop
37-
Get-Service Onevox # Status
35+
# Register (one-time, run as Administrator)
36+
sc.exe create Onevox binPath= "\"$env:LOCALAPPDATA\onevox\onevox.exe\" daemon --foreground" start= auto
37+
38+
sc.exe start Onevox # Start
39+
sc.exe stop Onevox # Stop
40+
sc.exe query Onevox # Status
41+
sc.exe stop Onevox; sc.exe start Onevox # Restart
3842
```
3943

4044
## Paths

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,13 @@ systemctl --user enable --now onevox
4949

5050
**Windows**
5151
```powershell
52+
$onevoxDir = "$env:LOCALAPPDATA\onevox"
5253
$asset = "onevox-windows-x86_64.zip"
5354
Invoke-WebRequest -Uri "https://github.com/kssgarcia/onevox/releases/latest/download/$asset" -OutFile $asset
54-
Expand-Archive -Path $asset -DestinationPath "$env:LOCALAPPDATA\onevox" -Force
55-
& "$env:LOCALAPPDATA\onevox\onevox.exe" --version
55+
Expand-Archive -Path $asset -DestinationPath $onevoxDir -Force
56+
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";$onevoxDir", [EnvironmentVariableTarget]::User)
57+
$env:Path += ";$onevoxDir"
58+
& "$onevoxDir\onevox.exe" --version
5659
```
5760

5861
See [INSTALLATION.md](INSTALLATION.md) for detailed setup instructions, troubleshooting, and service management.

docs/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,10 @@ <h3 class="mono">Windows</h3>
374374
>
375375
COPY
376376
</button>
377-
<pre><span class="highlight">Invoke-WebRequest</span> -Uri "https://github.com/kssgarcia/onevox/releases/latest/download/onevox-windows-x86_64.zip" -OutFile onevox-windows-x86_64.zip
378-
<span class="highlight">Expand-Archive</span> -Path onevox-windows-x86_64.zip -DestinationPath "$env:LOCALAPPDATA\onevox" -Force</pre>
377+
<pre>$onevoxDir = "$env:LOCALAPPDATA\onevox"
378+
<span class="highlight">Invoke-WebRequest</span> -Uri "https://github.com/kssgarcia/onevox/releases/latest/download/onevox-windows-x86_64.zip" -OutFile onevox-windows-x86_64.zip
379+
<span class="highlight">Expand-Archive</span> -Path onevox-windows-x86_64.zip -DestinationPath $onevoxDir -Force
380+
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";$onevoxDir", [EnvironmentVariableTarget]::User)</pre>
379381
</div>
380382
<p style="font-size: 12px; margin-top: 20px">
381383
HOTKEY:

0 commit comments

Comments
 (0)