AnthonyMastrean / chocolateypackages

Application packages for Windows
https://chocolatey.org/profiles/AnthonyMastrean
18 stars 63 forks source link

shellcheck #316

Closed AnthonyMastrean closed 2 years ago

AnthonyMastrean commented 5 years ago

https://github.com/koalaman/shellcheck

AnthonyMastrean commented 5 years ago

They've already fallen for scoop!

virgilwashere commented 5 years ago

I will submit another PR to update the README at https://github.com/koalaman/shellcheck.

Oh...look at the order on the page... how did that happen?


On Windows (via chocolatey):

C:\> choco install shellcheck

Or Windows (via scoop):

C:\> scoop install shellcheck

virgilwashere commented 5 years ago

🏅 Winner!

Merged. https://github.com/koalaman/shellcheck/pull/1571#event-2328860284

virgilwashere commented 5 years ago

shellcheck-latest

From the discussion on disqus with Patrick Wyatt and Gary Ewan Park at the package page, I think shellcheck-latest should be a go.

Here's a nuspec I started on, and then went silly with adding markdown to html conversion... the version below worked.

This might work for different package name ??

    <id>shellcheck-latest</id>
    <version>0.6.0-compiled-20190510</version>

At the very least, can you add the releasenotes url to changelog for -latest packages

Hope it's useful.

.nuspec and Install.ps1

shellcheck-latest.nuspec ```xml shellcheck ShellCheck (latest) 0.6.0-latest Vidar Holen Anthony Mastrean ShellCheck is a GPLv3 tool that gives warnings and suggestions for bash/sh shell scripts. The goals of ShellCheck are * To point out and clarify typical beginner's syntax issues that cause a shell to give cryptic error messages. * To point out and clarify typical intermediate level semantic problems that cause a shell to behave strangely and counter-intuitively. * To point out subtle caveats, corner cases and pitfalls that may cause an advanced user's otherwise working script to fail under future circumstances. This is the latest (`--pre`)release pre-compiled binary . It installs to `%ChocolateyInstall%\lib\shellcheck\bin` with the command `choco install --pre shellcheck`. Here is the [`man page`](https://github.com/koalaman/shellcheck/blob/master/shellcheck.1.md) and the [Changelog](https://github.com/koalaman/shellcheck/blob/master/CHANGELOG.md). http://www.shellcheck.net/ shell check lint bash static analysis Copyright 2012-2015, Vidar 'koala_man' Holen and contributors. https://shellcheck.storage.googleapis.com/LICENSE.txt https://github.com/koalaman/shellcheck/wiki https://github.com/koalaman/shellcheck/issues https://github.com/koalaman/shellcheck/blob/master/CHANGELOG.md https://github.com/koalaman/shellcheck/ https://github.com/AnthonyMastrean/chocolateypackages/tree/master/packages/shellcheck false ```
chocolateyInstall.ps1 ```ps1 $tools = Split-Path $MyInvocation.MyCommand.Definition $content = Join-Path (Split-Path $tools) 'content' $original = Join-Path $content 'shellcheck-latest.exe' $target = Join-Path $content 'shellcheck.exe' Install-ChocolateyZipPackage ` -PackageName 'shellcheck-latest' ` -Url 'https://shellcheck.storage.googleapis.com/shellcheck-latest.zip' ` -Checksum '4128bd0a48bcbf35611255138c7ee51cbf23558c91eaa7e4d40075558524c1f3cb77781c6e1caf88ae790f50563b0a95544f53aac665ab948d0337746e2ad063' ` -ChecksumType 'SHA512' ` -UnzipLocation $content Rename-Item -Path $original -NewName $target -Force | Out-Null ```