-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPackRelease.ps1
More file actions
12 lines (12 loc) · 1.07 KB
/
PackRelease.ps1
File metadata and controls
12 lines (12 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
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\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
Compress-Archive -Path "$((Get-Location).Path)\out\*" -DestinationPath "$((Get-Location).Path)\SysprepPreparator.zip" -Force
} else {
Write-Host "Output directory not found."
}