Skip to content

[feature]: Publishing to Scoop (win) #792

@NucleoFusion

Description

@NucleoFusion

Problem

Currently support for windows is a concern since we have no package managers for windows where harbor-cli is available. Brew supports Linux and Mac, we have APT & deb/rpm/apk. But no windows.
Therefore I propose adding support for scoop publish in dagger release pipeline.

Proposed Solution

Scoop is quite similar to homebrew and requires a structure of

repo
  |- bucket
         |- *.json

The convention is to use a separate repo called scoop-bucket or something, but this is also possible to do inside the harbor-cli repo as well.
That would require a bucket/ directory in root with the relevant JSON to point scoop to bin.

@bupd @Vad1mo would it be possible to create / have a scoop-bucket repo in the goharbor project.
If not, it is possible to do so in the repo itself, but it is unideal.

Context

// Mock JSON structure

{
  "version": "1.2.3",
  "description": "A fast and minimal CLI for XYZ",
  "homepage": "https://github.com/your-org/your-cli",
  "license": "MIT",

  "architecture": {
    "64bit": {
      "url": "https://github.com/your-org/your-cli/releases/download/v1.2.3/your-cli-windows-amd64.zip",
      "hash": "PUT_SHA256_HERE"
    },
    "arm64": {
      "url": "https://github.com/your-org/your-cli/releases/download/v1.2.3/your-cli-windows-arm64.zip",
      "hash": "PUT_SHA256_ARM64_HERE"
    }
  },

  "bin": "your-cli.exe",

  "checkver": {
    "github": "your-org/your-cli"
  },

  "autoupdate": {
    "architecture": {
      "64bit": {
        "url": "https://github.com/your-org/your-cli/releases/download/v$version/your-cli-windows-amd64.zip"
      },
      "arm64": {
        "url": "https://github.com/your-org/your-cli/releases/download/v$version/your-cli-windows-arm64.zip"
      }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions