Skip to content

Commit

Permalink
ENH: Improve Windows tarball compress
Browse files Browse the repository at this point in the history
>2GB to <800MB. Under the 2GB GitHub Release limit.

Based on suggestions here:

  https://superuser.com/questions/281573/what-are-the-best-options-to-use-when-compressing-files-using-7-zip
  • Loading branch information
thewtex committed Oct 20, 2023
1 parent 570f6b5 commit 80c77b9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/windows-build-tarball.ps1
@@ -1,7 +1,7 @@
# This script creates a tarball of the ITK Python package build tree. It is
# downloaded by the external module build scripts and used to build their
# Python package on GitHub CI services.

cd C:\P\
Remove-Item IPP\dist\*
C:\7-Zip\7z.exe a -r 'C:\P\ITKPythonBuilds-windows.zip' -w 'C:\P\IPP' -mem=AES256
# This script creates a tarball of the ITK Python package build tree. It is
# downloaded by the external module build scripts and used to build their
# Python package on GitHub CI services.

cd C:\P\
Remove-Item IPP\dist\*
C:\7-Zip\7z.exe a -t7z -mx=9 -mfb=273 -ms -md=31 -myx=9 -mtm=- -mmt -mmtf -md=1536m -mmf=bt3 -mmc=10000 -mpb=0 -mlc=0 -r 'C:\P\ITKPythonBuilds-windows.zip' -w 'C:\P\IPP'

0 comments on commit 80c77b9

Please sign in to comment.