Skip to content

vexx32/12DaysOfChocolatey

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

12 Days Of Chocolatey Examples

Day 5 - 7 December 2020

Day 5 covered building packages! We went over creating packages manually using choco new packagename, Package Builder, building large packages, and touched on Package Internalizer.

This repository contains all of the sample code that you saw during the demos presented on this day.

Quick Tips

Create a Chocolatey package from all installers in the same folder

Get-ChildItem . -Recurse -Include *.msi,*.exe |
    ForEach-Object {
        choco new $($_.BaseName) --file $_.FullName --build-package --output-directory C:\packages
    }

Push all newly-created packages up to repository (replace chocoserver with your repo)

Get-ChildItem . -Recurse -Include *.nupkg |
    ForEach-Object {
        choco push $_.FullName -s https://chocoserver:8443/repository/ChocolateyInternal/
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%