Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add additional files to a Chocolatey package?

I am installing a customized edition of the git.install package. I added some additional files in the tools directory.

git.install
  tools
    file1 
    file2
    chocolateyInstall.ps1

However, upon running choco install git.install, the files aren't found. I also checked the build directory in chocolatey\lib-bad\git.install\tools and found that the additional files were not copied.

like image 840
user1686342 Avatar asked Jan 23 '26 19:01

user1686342


1 Answers

If you are adding files, you need to check over the nuspec files section to ensure that the files will get included. Once you've verified that you need to then package everything back up into a nupkg (compiled version of the package, a fancy zip file).

Resources:

  • https://docs.chocolatey.org/en-us/create/create-packages
  • https://docs.chocolatey.org/en-us/create/create-packages#build-your-package
  • https://blog.chocolatey.org/2016/01/create-chocolatey-packages/ - a recent write up I did.
like image 111
ferventcoder Avatar answered Jan 26 '26 08:01

ferventcoder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!