From 1dcd625ea2126c06cfd4a4f5213c491801e03698 Mon Sep 17 00:00:00 2001 From: objz Date: Sat, 2 May 2026 18:50:36 +0200 Subject: [PATCH] fix: chocolatey issue and readme install --- .github/workflows/publish-chocolatey.yml | 10 ++++++ README.md | 40 ++++++++++++++---------- 2 files changed, 33 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish-chocolatey.yml b/.github/workflows/publish-chocolatey.yml index 350880c..9334c9e 100644 --- a/.github/workflows/publish-chocolatey.yml +++ b/.github/workflows/publish-chocolatey.yml @@ -60,6 +60,8 @@ jobs: shell: bash run: | package="target/chocolatey/out/mcl-launcher.${{ steps.package.outputs.version }}.nupkg" + version="${{ steps.package.outputs.version }}" + public_package_url="https://community.chocolatey.org/packages/mcl-launcher/$version" saw_server_error=false for attempt in 1 2 3; do @@ -84,6 +86,14 @@ jobs: exit 0 fi + page_file="$RUNNER_TEMP/chocolatey-package-$version.html" + page_status="$(curl --location --silent --show-error --output "$page_file" --write-out "%{http_code}" "$public_package_url")" + + if [ "$page_status" = "200" ] && grep -qE "awaiting moderation|remain unlisted until it has been approved|Version History" "$page_file"; then + echo "::warning::Chocolatey returned 403, but the public package page for version $version exists and is awaiting moderation; treating this publish as complete." + exit 0 + fi + echo "::error::Chocolatey rejected the push with 403 before any server-side failure. Check CHOCOLATEY_API_KEY ownership/permissions for mcl-launcher." exit 1 fi diff --git a/README.md b/README.md index d025a16..982239b 100644 --- a/README.md +++ b/README.md @@ -50,27 +50,19 @@ Authentication is performed through Microsoft’s official services. ### macOS / Linux -release builds include shell and Homebrew installers generated by -[`cargo-dist`](https://axodotdev.github.io/cargo-dist/). +prebuilt archives are attached to each GitHub release. ```sh -# installer script -curl --proto '=https' --tlsv1.2 -LsSf https://github.com/objz/mcl/releases/latest/download/mcl-launcher-installer.sh | sh - -# Homebrew tap +# Homebrew brew install objz/tap/mcl-launcher ``` ### Windows -release builds include a PowerShell installer and an MSI. WinGet and Chocolatey -packages are submitted from release CI and become available after repository -review. +release builds include a `.zip` archive and an `.msi`. WinGet and Chocolatey +packages are submitted from release CI and become available after review. ```powershell -# installer script -powershell -ExecutionPolicy Bypass -c "irm https://github.com/objz/mcl/releases/latest/download/mcl-launcher-installer.ps1 | iex" - # WinGet winget install Objz.MclLauncher @@ -80,10 +72,6 @@ choco install mcl-launcher ### Arch Linux -[![AUR version](https://img.shields.io/aur/version/mcl-launcher?style=for-the-badge&label=mcl-launcher)](https://aur.archlinux.org/packages/mcl-launcher) -[![AUR version](https://img.shields.io/aur/version/mcl-launcher-bin?style=for-the-badge&label=mcl-launcher-bin)](https://aur.archlinux.org/packages/mcl-launcher-bin) -[![AUR version](https://img.shields.io/aur/version/mcl-launcher-git?style=for-the-badge&label=mcl-launcher-git)](https://aur.archlinux.org/packages/mcl-launcher-git) - ```sh # from source (release tarball) paru -S mcl-launcher @@ -95,7 +83,25 @@ paru -S mcl-launcher-bin paru -S mcl-launcher-git ``` -also available on [crates.io](https://crates.io/crates/mcl-launcher) +### Cargo + +```sh +cargo install mcl-launcher +``` + +### package status + +[![GitHub release](https://img.shields.io/github/v/release/objz/mcl?style=for-the-badge&logo=github)](https://github.com/objz/mcl/releases) +[![crates.io](https://img.shields.io/crates/v/mcl-launcher?style=for-the-badge&logo=rust)](https://crates.io/crates/mcl-launcher) +[![Homebrew tap](https://img.shields.io/badge/homebrew-objz%2Ftap-FBB040?style=for-the-badge&logo=homebrew)](https://github.com/objz/homebrew-tap) +[![WinGet](https://img.shields.io/badge/winget-Objz.MclLauncher-0078D4?style=for-the-badge&logo=windows11)](https://winstall.app/apps/Objz.MclLauncher) +[![Chocolatey](https://img.shields.io/chocolatey/v/mcl-launcher?style=for-the-badge&logo=chocolatey)](https://community.chocolatey.org/packages/mcl-launcher) +[![AUR mcl-launcher](https://img.shields.io/aur/version/mcl-launcher?style=for-the-badge&logo=archlinux)](https://aur.archlinux.org/packages/mcl-launcher) +[![AUR mcl-launcher-bin](https://img.shields.io/aur/version/mcl-launcher-bin?style=for-the-badge&logo=archlinux)](https://aur.archlinux.org/packages/mcl-launcher-bin) +[![AUR mcl-launcher-git](https://img.shields.io/aur/version/mcl-launcher-git?style=for-the-badge&logo=archlinux)](https://aur.archlinux.org/packages/mcl-launcher-git) +[![Repology](https://img.shields.io/repology/v/mcl-launcher?style=for-the-badge)](https://repology.org/project/mcl-launcher/versions) + +there's also [repology](https://repology.org/project/mcl-launcher/versions), but it does not seem to pick up every source here. right now it mostly shows the AUR packages, so don't treat it as the source of truth for WinGet, Chocolatey, Homebrew, or crates.io. ### from source