Skip to content

jmgilman/ChocolateyPackageCreator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chocolatey Package Creator

Powershell module for creating internal Chocolatey packages

Installation

$> Install-Module ChocolateyPackageCreator

Usage

For a more in-depth guide, see Getting Started. Create a new package template:

$> New-ChocolateyPackageConfig C:\my\package

Modify the contents of the template package to fit the needs of the package you are trying to create. For more in-depth documentation and examples, see the examples directory. To understand the schema of a package file, see the schema documentation. When ready, build the package:

$> $config = Import-PowerShellDataFile 'C:\my\package\package.psd1'
$> $packagePath = New-ChocolateyPackage (Split-Path $configFile) $config | 
    Build-ChocolateyPackage -OutPath 'C:\my\package\bin'

And then publish it:

$> Publish-ChocolateyPackage `
    -Repository 'http://my.nuget.com/repository' `
    -ApiKey $env:API_KEY `
    -PackageFile $packagePath

Features

  • Define all package elements in a single configuration file
  • Automatically download and scan external files
  • Easily extendable with custom logic in the package creation process
  • Create and deploy packages with a single module

Meta

Joshua Gilman - joshuagilman@gmail.com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/jmgilman

About

Powershell module for creating internal Chocolatey packages

Resources

License

Stars

Watchers

Forks

Packages

No packages published