Skip to content

Commit

Permalink
Update how packages are created, so DNN will like them
Browse files Browse the repository at this point in the history
The other method (Write-Zip from PSCX) created zips that DNN's SharpZipLib
couldn't read.  Using System.IO.Compression.ZipFile.CreateFromDirectory
creates working packages.
  • Loading branch information
bdukes committed Mar 5, 2014
1 parent 3825663 commit 3d005cf
Show file tree
Hide file tree
Showing 29 changed files with 6 additions and 5 deletions.
Binary file modified InstallPackages/00_jQuery.cycle2.core_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/01_jQuery.cycle2.tmpl_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/02_jQuery.cycle2.autoheight_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/02_jQuery.cycle2.caption_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/02_jQuery.cycle2.command_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/02_jQuery.cycle2.hash_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/02_jQuery.cycle2.loader_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/02_jQuery.cycle2.pager_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/02_jQuery.cycle2.prevnext_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/02_jQuery.cycle2.progressive_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/03_jQuery.cycle2_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/jQuery.easing_1.3.1.zip
Binary file not shown.
Binary file modified InstallPackages/jQuery.fancybox_1.3.4.zip
Binary file not shown.
Binary file modified InstallPackages/jQuery.flexslider_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/jQuery.flexslider_2.2.0.zip
Binary file not shown.
Binary file modified InstallPackages/jQuery.flexslider_2.2.2.zip
Binary file not shown.
Binary file modified InstallPackages/jquery.cycle2.caption2_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/jquery.cycle2.carousel_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/jquery.cycle2.center_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/jquery.cycle2.flip_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/jquery.cycle2.ie-fade_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/jquery.cycle2.scrollVert_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/jquery.cycle2.shuffle_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/jquery.cycle2.swipe_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/jquery.cycle2.tile_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/jquery.cycle2.video_2.1.0.zip
Binary file not shown.
Binary file modified InstallPackages/jquery.tcycle_2.1.0.zip
Binary file not shown.
5 changes: 3 additions & 2 deletions New-Package.psm1
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Set-StrictMode -Version:Latest
Import-Module PSCX -RequiredVersion 3.1.0.0
#Import-Module PSCX -RequiredVersion 3.1.0.0
Add-Type -AssemblyName 'System.IO.Compression.FileSystem'

function New-Package(
$directory = '.',
Expand Down Expand Up @@ -35,7 +36,7 @@ function New-Package(
if ($zipThisDirectory) {
#Write-Host ('zipping ' + $directory.Path)
$zipName = (Split-Path $directory.Path -Leaf) + '.zip'
ls $directory | Write-Zip -FlattenPaths -OutputPath (Join-Path $outputPath $zipName)
[System.IO.Compression.ZipFile]::CreateFromDirectory($directory, (Join-Path $outputPath $zipName), [System.IO.Compression.CompressionLevel]::Optimal, $false)
}
}

Expand Down
6 changes: 3 additions & 3 deletions ZipAllLibraries.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Import-Module .\New-Package.psm1
rmdir .\InstallPackages -recurse -force
mkdir .\InstallPackages
New-Package -recurse
rmdir .\InstallPackages -Recurse -Force
mkdir .\InstallPackages | Out-Null
New-Package -Recurse

0 comments on commit 3d005cf

Please sign in to comment.