Browse Source

Merge pull request #19002 from abpframework/EngincanV/update-zip-templates-script

Update zip-templates.ps1 and only zip sub-folder contents.
pull/19003/head
Gizem Mutu Kurt 3 years ago
committed by GitHub
parent
commit
998153e684
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      templates/zip-templates.ps1

5
templates/zip-templates.ps1

@ -1,13 +1,14 @@
$version = $args[0]
$folders = Get-ChildItem -Directory
foreach ($folder in $folders) {
$zipFile = "./" + $folder.Name + ".zip"
$zipFile = "./" + $folder.Name + "-" + $version + ".zip"
if (Test-Path $zipFile) {
Remove-Item $zipFile
}
Compress-Archive -Path $folder.FullName -DestinationPath $zipFile
Compress-Archive -Path "$($folder.FullName)\*" -DestinationPath $zipFile
}
Write-Host "All templates have been zipped."

Loading…
Cancel
Save