Skip to content

Instantly share code, notes, and snippets.

@glennsarti
Created August 2, 2016 04:04
Show Gist options
  • Save glennsarti/4d05479acd1c064bcfea8abeb638c021 to your computer and use it in GitHub Desktop.
Save glennsarti/4d05479acd1c064bcfea8abeb638c021 to your computer and use it in GitHub Desktop.
Build DSC package
@ECHO OFF
SETLOCAL
choco install 7zip -y
ECHO Cleaning...
RD "%~dp0pkg" /s/q
ECHO Building the puppet module...
CALL bundle exec rake build
ECHO Creating tarball...
7za a -y "%~dp0pkg\win.puppetlabs-dsc-1.0.1.tar" "%~dp0pkg\puppetlabs-dsc-1.0.1"
ECHO Creating GZip...
7za a -y "%~dp0pkg\win.puppetlabs-dsc-1.0.1.tar.gz" "%~dp0pkg\win.puppetlabs-dsc-1.0.1.tar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment