mirror of https://github.com/abpframework/abp.git
1 changed files with 3 additions and 2 deletions
@ -1,13 +1,14 @@ |
|||||
|
$version = $args[0] |
||||
$folders = Get-ChildItem -Directory |
$folders = Get-ChildItem -Directory |
||||
|
|
||||
foreach ($folder in $folders) { |
foreach ($folder in $folders) { |
||||
$zipFile = "./" + $folder.Name + ".zip" |
$zipFile = "./" + $folder.Name + "-" + $version + ".zip" |
||||
|
|
||||
if (Test-Path $zipFile) { |
if (Test-Path $zipFile) { |
||||
Remove-Item $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." |
Write-Host "All templates have been zipped." |
||||
|
|||||
Loading…
Reference in new issue