-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmake_release.ps1
More file actions
19 lines (14 loc) · 914 Bytes
/
make_release.ps1
File metadata and controls
19 lines (14 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$staging = "$env:TEMP\DVRouteManager_stage"
$dest = "D:\Documents\DVRouteManager\DVRouteManager.zip"
Remove-Item $staging -Recurse -Force -ErrorAction SilentlyContinue
New-Item -ItemType Directory -Force $staging | Out-Null
Copy-Item "D:\Documents\DVRouteManager\DVRouteManager\bin\Debug\DVRouteManager.dll" $staging
Copy-Item "D:\Documents\DVRouteManager\DVRouteManager\bin\Debug\Priority Queue.dll" $staging
Copy-Item "D:\Documents\DVRouteManager\Info.json" $staging
New-Item -ItemType Directory -Force "$staging\Resources\audio" | Out-Null
Copy-Item "D:\Documents\DVRouteManager\DVRouteManager\Resources\audio\*" "$staging\Resources\audio"
Remove-Item $dest -Force -ErrorAction SilentlyContinue
Compress-Archive -Path $staging -DestinationPath $dest -Force
Remove-Item $staging -Recurse -Force
Write-Host "Done: $dest"
Get-Item $dest | Select-Object Name, @{N='Size_KB';E={[math]::Round($_.Length/1KB,1)}}