-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.ps1
More file actions
38 lines (28 loc) · 1.15 KB
/
Copy pathdeploy.ps1
File metadata and controls
38 lines (28 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
param(
$SteamVRPath = "C:\Program Files (x86)\Steam\steamapps\common\SteamVR",
$Config = "Release"
)
$driverName = "PepperVR"
$driverDest = "$SteamVRPath\drivers\$driverName\bin\win64"
$resDest = "$SteamVRPath\drivers\$driverName"
New-Item -ItemType Directory -Force -Path $driverDest | Out-Null
New-Item -ItemType Directory -Force -Path "$resDest\resources\settings" | Out-Null
$dll = "bin\$Config\driver_fakevr.dll"
if (Test-Path $dll) {
Copy-Item $dll "$driverDest\driver_fakevr.dll" -Force
Write-Host "Copied DLL -> $driverDest"
} else {
Write-Error "DLL not found at $dll — build the project"
exit 1
}
Copy-Item "driver_files\driver.vrdrivermanifest" "$resDest\driver.vrdrivermanifest" -Force
Copy-Item "driver_files\resources\settings\default.vrsettings" `
"$resDest\resources\settings\default.vrsettings" -Force
Write-Host ""
Write-Host "Deployment completed"
Write-Host "Driver installed at: $resDest"
Write-Host ""
Write-Host "Next steps:"
Write-Host " 1. Launch SteamVR"
Write-Host " 2. Check SteamVR > Developer > Driver Status for 'PepperVR'"
Write-Host " 3. Move the SteamVR window into focus for mouse capture"