Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 590 Bytes
Param(
[string]$dir
)
function ZipFiles( $zipfilename, $sourcedir )
{
Add-Type -Assembly System.IO.Compression.FileSystem
$compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal
[System.IO.Compression.ZipFile]::CreateFromDirectory($sourcedir,
$zipfilename, $compressionLevel, $false)
}
$folderName = Get-ChildItem "$dir\AppxPackages\" | Select-Object -first 1
Write-Host "creating zip of folder $dir\AppxPackages\"
ZipFiles "$($dir)\$($folderName.Name).zip" "$dir\AppxPackages\";
Write-Host "created zip file with name $($dir)\$($folderName.Name).zip"