-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathPackRelease.ps1
More file actions
15 lines (15 loc) · 1.43 KB
/
Copy pathPackRelease.ps1
File metadata and controls
15 lines (15 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if (Test-Path -Path "$((Get-Location).Path)\bin\Debug\SysprepPreparator.exe" -PathType Leaf) {
Write-Host "Packing release..."
New-Item -Path "$((Get-Location).Path)\out" -ItemType Directory -ErrorAction SilentlyContinue | Out-Null
Copy-Item -Path "$((Get-Location).Path)\bin\Debug\BDELib.dll" -Destination "$((Get-Location).Path)\out\BDELib.dll" -Verbose -Force
Copy-Item -Path "$((Get-Location).Path)\bin\Debug\Microsoft.Dism.dll" -Destination "$((Get-Location).Path)\out\Microsoft.Dism.dll" -Verbose -Force
Copy-Item -Path "$((Get-Location).Path)\bin\Debug\IniFileParser.dll" -Destination "$((Get-Location).Path)\out\IniFileParser.dll" -Verbose -Force
New-Item -Path "$((Get-Location).Path)\out\Languages" -ItemType Directory -ErrorAction SilentlyContinue | Out-Null
Copy-Item -Path "$((Get-Location).Path)\bin\Debug\Languages\*.ini" -Destination "$((Get-Location).Path)\out\Languages" -Verbose -Force
Copy-Item -Path "$((Get-Location).Path)\bin\Debug\SysprepPreparator.exe*" -Destination "$((Get-Location).Path)\out" -Verbose -Force
New-Item -Path "$((Get-Location).Path)\out\Tools" -ItemType Directory -ErrorAction SilentlyContinue | Out-Null
Copy-Item -Path "$((Get-Location).Path)\bin\Debug\Tools\*.*" -Destination "$((Get-Location).Path)\out\Tools" -Verbose -Force
Compress-Archive -Path "$((Get-Location).Path)\out\*" -DestinationPath "$((Get-Location).Path)\SysprepPreparator.zip" -Force
} else {
Write-Host "Output directory not found."
}