File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11if (Test-Path - Path " $ ( (Get-Location ).Path) \bin\Debug\SysprepPreparator.exe" - PathType Leaf) {
2- New-Item - Path " .\out" - ItemType Directory - ErrorAction SilentlyContinue | Out-Null
3- Copy-Item - Path " .\bin\Debug\Microsoft.Dism.dll" - Destination " .\out\Microsoft.Dism.dll" - Verbose - Force
4- Copy-Item - Path " .\bin\Debug\IniFileParser.dll" - Destination " .\out\IniFileParser.dll" - Verbose - Force
5- New-Item - Path " .\out\Languages" - ItemType Directory - ErrorAction SilentlyContinue | Out-Null
6- Copy-Item - Path " .\bin\Debug\Languages\*.ini" - Destination " .\out\Languages" - Verbose - Force
7- Copy-Item - Path " .\bin\Debug\SysprepPreparator.exe*" - Destination " .\out" - Verbose - Force
8- Compress-Archive - Path " .\out\*" - DestinationPath " .\SysprepPreparator.zip" - Force
2+ Write-Host " Packing release..."
3+ New-Item - Path " $ ( (Get-Location ).Path) \out" - ItemType Directory - ErrorAction SilentlyContinue | Out-Null
4+ Copy-Item - Path " $ ( (Get-Location ).Path) \bin\Debug\Microsoft.Dism.dll" - Destination " $ ( (Get-Location ).Path) \out\Microsoft.Dism.dll" - Verbose - Force
5+ Copy-Item - Path " $ ( (Get-Location ).Path) \bin\Debug\IniFileParser.dll" - Destination " $ ( (Get-Location ).Path) \out\IniFileParser.dll" - Verbose - Force
6+ New-Item - Path " $ ( (Get-Location ).Path) \out\Languages" - ItemType Directory - ErrorAction SilentlyContinue | Out-Null
7+ Copy-Item - Path " $ ( (Get-Location ).Path) \bin\Debug\Languages\*.ini" - Destination " $ ( (Get-Location ).Path) \out\Languages" - Verbose - Force
8+ Copy-Item - Path " $ ( (Get-Location ).Path) \bin\Debug\SysprepPreparator.exe*" - Destination " $ ( (Get-Location ).Path) \out" - Verbose - Force
9+ Compress-Archive - Path " $ ( (Get-Location ).Path) \out\*" - DestinationPath " $ ( (Get-Location ).Path) \SysprepPreparator.zip" - Force
10+ } else {
11+ Write-Host " Output directory not found."
912}
Original file line number Diff line number Diff line change 212212 <Target Name="AfterBuild">
213213 </Target>
214214 -->
215+ <PropertyGroup >
216+ <PostBuildEvent >"\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -command "cd '$(ProjectDir)' ; iex '$(ProjectDir)PackRelease.ps1'"</PostBuildEvent >
217+ </PropertyGroup >
215218</Project >
You can’t perform that action at this time.
0 commit comments