Skip to content

Publish the Scoop manifest to a central repository #691

Closed

Description

@JanPokorny

Describe the feature or problem you’d like to solve

Currently, gh has a Scoop manifest available, but is essentially kept within its own "repository". This makes it less discoverable, as most scoop users use scoop search ... to find installable packages.

Proposed solution

Modify gh.json to support autoupdate and publish to either https://github.com/ScoopInstaller/Main/ or https://github.com/lukesampson/scoop-extras. This will make the manifest self-updating (official buckets use Appveyor for that), keeping up with the most recent (not pre-) release.

This also removes the need to keep the current gh.json file.

I have tested the following manifest, feel free to use it.

{
    "description": "GitHub CLI",
    "homepage": "https://cli.github.com/",
    "license": "MIT",
    "version": "0.6.2",
    "architecture": {
        "32bit": {
            "url": "https://github.com/cli/cli/releases/download/v0.6.2/gh_0.6.2_windows_386.zip",
            "hash": "bb1903b9f6ebddaffc56a1b9945c30025432f28742977ee2aa11c2bd38110373"
        },
        "64bit": {
            "url": "https://github.com/cli/cli/releases/download/v0.6.2/gh_0.6.2_windows_amd64.zip",
            "hash": "089ec177fc2813a2ca01d4b3ba56cbdc4cb089e3fb30ab2a159ec2afdd421c61"
        }
    },
    "bin": "bin/gh.exe",
    "checkver": {
        "github": "https://github.com/cli/cli"
    },
    "autoupdate": {
        "architecture": {
            "32bit": {
                "url": "https://github.com/cli/cli/releases/download/v$version/gh_$version_windows_386.zip"
            },
            "64bit": {
                "url": "https://github.com/cli/cli/releases/download/v$version/gh_$version_windows_amd64.zip"
            }
        }
    }
}

Activity

  1. JanPokorny commented on Mar 21, 2020

    @JanPokorny
    ContributorAuthor

    Additionally, it is possible for the Scoop manifest to support automatically adding gh completion -s powershell to the PowerShell profile -- similarly how pshazz does it:

    pshazz manifest: https://github.com/ScoopInstaller/Main/blob/master/bucket/pshazz.json
    pshazz install script: https://github.com/lukesampson/pshazz/blob/master/bin/install.ps1

  2. linsui commented on Mar 22, 2020

    @linsui
  3. JanPokorny commented on Mar 22, 2020

    @JanPokorny
    ContributorAuthor

    @linsui Thanks, didn't think to look into open PRs. Hope this issue helps developers to notice this and give the awaited feedback.

  4. JanPokorny commented on Apr 17, 2020

    @JanPokorny
    ContributorAuthor

    Implemented by ScoopInstaller/Main#841. gh is now available in the main (default) bucket, and thus is simply installable by scoop install gh. Now only README.md needs to be updated -- created PR #797

  5. mislav commented on May 8, 2020

    @mislav
    Contributor

    gh is now listed in scoop central repository, so I believe this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions