-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.ps1
More file actions
24 lines (18 loc) · 729 Bytes
/
deploy.ps1
File metadata and controls
24 lines (18 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Deploy gamedata to Anomaly
# Usage: .\deploy.ps1
$Source = "$PSScriptRoot\gamedata"
$Destination = "C:\Anomaly\gamedata"
Write-Host "Deploying DevTools gamedata..." -ForegroundColor Cyan
Write-Host " From: $Source" -ForegroundColor Gray
Write-Host " To: $Destination" -ForegroundColor Gray
if (-not (Test-Path $Source)) {
Write-Host "ERROR: Source folder not found: $Source" -ForegroundColor Red
exit 1
}
# Create destination if it doesn't exist
if (-not (Test-Path $Destination)) {
New-Item -ItemType Directory -Path $Destination -Force | Out-Null
}
# Copy with overwrite
Copy-Item -Path "$Source\*" -Destination $Destination -Recurse -Force
Write-Host "DevTools deploy complete!" -ForegroundColor Green