mp4096 / indentex

An indentation-based superset of LaTeX
MIT License
9 stars 2 forks source link

Chocolatey package #35

Closed syxolk closed 7 years ago

syxolk commented 7 years ago

There seem to be three different approaches on how to build a chocolatey package. They all need a .nuspec file containing the id, version, description and other stuff.

All three variants seem to require elevated privileges because chocolatey uses %ProgramData%.

On the difference between portable and installed packages.

Packaging: By calling choco pack a indentex.*.nupkg is build.

Deployment: Requires an API key for chocolatey. Call choco push to publish on chocolatey.org. This can be done automatically on appveyor.

syxolk commented 7 years ago

Benefits of the first approach:

Drawbacks of the first approach:

syxolk commented 7 years ago

Do you want to use your own chocolatey api key @mp4096 ?

mp4096 commented 7 years ago

Uhm, I added something, but I have no idea if it works.

mp4096 commented 7 years ago

e1e6500cd6d612faf9b4e4f0717997e9e94d41d8

syxolk commented 7 years ago

Uhm, I added something, but I have no idea if it works.

I just got lemon-grabbed 😆 .

syxolk commented 7 years ago

You probably need to add an artifact use its name instead of this regex: /.*\.nupkg/ (I don't know if it finds the package.)

mp4096 commented 7 years ago

huehuehue

mp4096 commented 7 years ago

Is the path .\packaging\windows_choco\package\indentex.nuspec?

Edit: I'm dumb.

mp4096 commented 7 years ago

Oh shoot, what I'm thinking.

mp4096 commented 7 years ago

.\packaging\windows_choco\indentex.nuget?

syxolk commented 7 years ago

For the current version it's .\packaging\windows_choco\indentex.0.4.0.nupkg.

mp4096 commented 7 years ago

So, /.\\packaging\\windows_choco\\indentex[.\w]+nupkg/? Could you please verify if this regex works in PoSh?

syxolk commented 7 years ago

Better add it here:

artifacts:
  - path: 'packaging\windows_wix\*.msi'
    name: indentex_installer

and then reference the artifact's name.

mp4096 commented 7 years ago

Oh, we already glob in artifacts. I dunno why, but I thought I must use a regex in the path specification.

mp4096 commented 7 years ago

Great success!

@syxolk Thank you for this! Do you want to open a PR?