segilbert / chocolateytemplates

The templates....

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chocolateytemplates

The templates …

… it’s all about the templates.

##Welcome to the simple way of creating chocolatey packages Take a look at this repository (note the _templates folder). Now open a command line, navigate to your source code top level folder and type the following:

 cinst warmup
 warmup addTextReplacement __CHOCO_PKG_MAINTAINER_NAME__ "Your Name"
 warmup addTextReplacement __CHOCO_PKG_MAINTAINER_REPO__ "Your Repository (contains your packages)"
 git clone https://github.com/chocolatey/chocolateytemplates.git
 cd chocolateytemplates\_templates
 warmup addTemplateFolder chocolatey "%cd%\chocolatey"
 warmup addTemplateFolder chocolatey3 "%cd%\chocolatey3"
 warmup addTemplateFolder chocolateyauto "%cd%\chocolateyauto"
 warmup addTemplateFolder chocolateyauto3 "%cd%\chocolateyauto3"
  • The package maintainer name (old term: owner) (CHOCO_PKG_MAINTAINER_NAME) would be you.
  • Your packages repository (CHOCO_PKG_MAINTAINER_REPO) is part of a github repo just ferventcoder/chocolatey-packages if your repository is https://github.com/ferventcoder/chocolatey-packages. This is only used for image urls. This repository contains your packages, also automatic packages if you have them. It is not recommended to use separate repositories for manual and automatic packages.

Now whenever you want to create a new package you just open a command line and navigate to your packages repository source code folder (or install stexbar cinst stexbar and just hit Ctrl+M from explorer).

 warmup templateName packageName

as in

 warmup chocolatey3 notepadplusplus

About

The templates....


Languages

Language:PowerShell 100.0%