From a3782c91a8be4986cf5660c9422e5d540f4d46da Mon Sep 17 00:00:00 2001 From: Hilmar Falkenberg Date: Mon, 25 Nov 2024 16:11:38 +0100 Subject: [PATCH 1/2] chore(documentation): How to publish `winget` packages. --- hack/winget/README.md | 16 +++++++++++++- ...pen-Component-Model.ocm-cli.installer.yaml | 22 ------------------- ...-Component-Model.ocm-cli.locale.en-US.yaml | 12 ---------- .../0.15.0/Open-Component-Model.ocm-cli.yaml | 8 ------- 4 files changed, 15 insertions(+), 43 deletions(-) delete mode 100644 hack/winget/manifests/o/Open-Component-Model/ocm-cli/0.15.0/Open-Component-Model.ocm-cli.installer.yaml delete mode 100644 hack/winget/manifests/o/Open-Component-Model/ocm-cli/0.15.0/Open-Component-Model.ocm-cli.locale.en-US.yaml delete mode 100644 hack/winget/manifests/o/Open-Component-Model/ocm-cli/0.15.0/Open-Component-Model.ocm-cli.yaml diff --git a/hack/winget/README.md b/hack/winget/README.md index 0e64b3a85f..bb7de4c65e 100644 --- a/hack/winget/README.md +++ b/hack/winget/README.md @@ -33,5 +33,19 @@ winget install --manifest .\manifests\o\Open-Component-Model\ocm-cli\0.15.0\ ## update package ```powershell -wingetcreate update --urls https://github.com/open-component-model/ocm/releases/download/v0.15.0/ocm-0.15.0-windows-386.zip https://github.com/open-component-model/ocm/releases/download/v0.15.0/ocm-0.15.0-windows-amd64.zip https://github.com/open-component-model/ocm/releases/download/v0.15.0/ocm-0.15.0-windows-arm64.zip --version 0.15.0 --release-notes-url https://github.com/open-component-model/ocm/releases/tag/v0.15.0 ` Open-Component-Model.ocm-cli +wingetcreate update --urls https://github.com/open-component-model/ocm/releases/download/v0.15.0/ocm-0.15.0-windows-amd64.zip https://github.com/open-component-model/ocm/releases/download/v0.15.0/ocm-0.15.0-windows-arm64.zip --version 0.15.0 --release-notes-url https://github.com/open-component-model/ocm/releases/tag/v0.15.0 ` Open-Component-Model.ocm-cli ``` + +## github action + +[push-to-winget](../../.github/workflows/publish-to-other-than-github.yaml#L124) requires a ["Personal access tokens (classic)"](https://github.com/organizations/open-component-model/settings/secrets/actions/OCM_CI_ROBOT_0_REPO). There is an open issue on [winget-create](https://github.com/microsoft/winget-create/issues/470). We [tried it](https://github.com/open-component-model/ocm/pull/1133) already with fine grained tokens and our [ocmbot](https://github.com/organizations/open-component-model/settings/apps/ocmbot). But that doesn't work: [ERROR: Resource not accessible by integration](https://github.com/open-component-model/ocm/actions/runs/12008922878/job/33472565698). + +## PRs on winget-pkgs + +The [pull request](https://github.com/microsoft/winget-pkgs/pull/193703) creator of has to sign the [Contributor License Agreement](https://cla.opensource.microsoft.com/microsoft/winget-pkgs). In case someone else than [ocm-ci-robot-0](https://github.com/orgs/open-component-model/people/ocm-ci-robot-0) creates such an update PR, you'll need to reply with: + +```text +@microsoft-github-policy-service agree company="SAP SE" +``` + +on your PR at least once. diff --git a/hack/winget/manifests/o/Open-Component-Model/ocm-cli/0.15.0/Open-Component-Model.ocm-cli.installer.yaml b/hack/winget/manifests/o/Open-Component-Model/ocm-cli/0.15.0/Open-Component-Model.ocm-cli.installer.yaml deleted file mode 100644 index 0e83d61914..0000000000 --- a/hack/winget/manifests/o/Open-Component-Model/ocm-cli/0.15.0/Open-Component-Model.ocm-cli.installer.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# Created using wingetcreate 1.6.5.0 -# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.6.0.schema.json - -PackageIdentifier: Open-Component-Model.ocm-cli -PackageVersion: 0.15.0 -InstallerType: zip -NestedInstallerType: portable -NestedInstallerFiles: -- RelativeFilePath: ocm.exe - PortableCommandAlias: ocm-cli -Installers: -- Architecture: x86 - InstallerUrl: https://github.com/open-component-model/ocm/releases/download/v0.15.0/ocm-0.15.0-windows-386.zip - InstallerSha256: BA31AC79286ACE0412AD5C3A91BBDD02751B39B60F257D74BA721036A361BC7C -- Architecture: x64 - InstallerUrl: https://github.com/open-component-model/ocm/releases/download/v0.15.0/ocm-0.15.0-windows-amd64.zip - InstallerSha256: DC767119CDB7B483C7384E8A879C2BE1B98A1AC24C02DB46E2A050F6A911C2CD -- Architecture: arm64 - InstallerUrl: https://github.com/open-component-model/ocm/releases/download/v0.15.0/ocm-0.15.0-windows-arm64.zip - InstallerSha256: 6981D5710FDEB06843A446E8E747E091FC5EB9538CD14D2BC4744A7D6F2922CD -ManifestType: installer -ManifestVersion: 1.6.0 diff --git a/hack/winget/manifests/o/Open-Component-Model/ocm-cli/0.15.0/Open-Component-Model.ocm-cli.locale.en-US.yaml b/hack/winget/manifests/o/Open-Component-Model/ocm-cli/0.15.0/Open-Component-Model.ocm-cli.locale.en-US.yaml deleted file mode 100644 index 952d04f58a..0000000000 --- a/hack/winget/manifests/o/Open-Component-Model/ocm-cli/0.15.0/Open-Component-Model.ocm-cli.locale.en-US.yaml +++ /dev/null @@ -1,12 +0,0 @@ -# Created using wingetcreate 1.6.5.0 -# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.6.0.schema.json - -PackageIdentifier: Open-Component-Model.ocm-cli -PackageVersion: 0.15.0 -PackageLocale: en-US -Publisher: SAP SE -PackageName: ocm-cli -License: Apache-2.0 -ShortDescription: Open Component Model Command Line Interface (ocm-cli) -ManifestType: defaultLocale -ManifestVersion: 1.6.0 diff --git a/hack/winget/manifests/o/Open-Component-Model/ocm-cli/0.15.0/Open-Component-Model.ocm-cli.yaml b/hack/winget/manifests/o/Open-Component-Model/ocm-cli/0.15.0/Open-Component-Model.ocm-cli.yaml deleted file mode 100644 index ff7a0d6214..0000000000 --- a/hack/winget/manifests/o/Open-Component-Model/ocm-cli/0.15.0/Open-Component-Model.ocm-cli.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# Created using wingetcreate 1.6.5.0 -# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.6.0.schema.json - -PackageIdentifier: Open-Component-Model.ocm-cli -PackageVersion: 0.15.0 -DefaultLocale: en-US -ManifestType: version -ManifestVersion: 1.6.0 From 16cc27a7d4cb212925bd68e1e81f6a421a2a4da0 Mon Sep 17 00:00:00 2001 From: Hilmar Falkenberg Date: Mon, 25 Nov 2024 16:20:55 +0100 Subject: [PATCH 2/2] winget packages repository --- hack/winget/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/winget/README.md b/hack/winget/README.md index bb7de4c65e..4dad048bc4 100644 --- a/hack/winget/README.md +++ b/hack/winget/README.md @@ -40,7 +40,7 @@ wingetcreate update --urls https://github.com/open-component-model/ocm/releases/ [push-to-winget](../../.github/workflows/publish-to-other-than-github.yaml#L124) requires a ["Personal access tokens (classic)"](https://github.com/organizations/open-component-model/settings/secrets/actions/OCM_CI_ROBOT_0_REPO). There is an open issue on [winget-create](https://github.com/microsoft/winget-create/issues/470). We [tried it](https://github.com/open-component-model/ocm/pull/1133) already with fine grained tokens and our [ocmbot](https://github.com/organizations/open-component-model/settings/apps/ocmbot). But that doesn't work: [ERROR: Resource not accessible by integration](https://github.com/open-component-model/ocm/actions/runs/12008922878/job/33472565698). -## PRs on winget-pkgs +## winget packages repository The [pull request](https://github.com/microsoft/winget-pkgs/pull/193703) creator of has to sign the [Contributor License Agreement](https://cla.opensource.microsoft.com/microsoft/winget-pkgs). In case someone else than [ocm-ci-robot-0](https://github.com/orgs/open-component-model/people/ocm-ci-robot-0) creates such an update PR, you'll need to reply with: