fix: chocolatey issue and readme install

This commit is contained in:
objz committed 2026-05-02 18:50:36 +02:00
1 parent f226358b1c
commit 1dcd625ea2
2 files changed
+33 -17

No files matched your search

+10
View File
@@ -60,6 +60,8 @@ jobs:
shell: bash shell: bash
run: | run: |
package="target/chocolatey/out/mcl-launcher.${{ steps.package.outputs.version }}.nupkg" 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 saw_server_error=false
for attempt in 1 2 3; do for attempt in 1 2 3; do
@@ -84,6 +86,14 @@ jobs:
exit 0 exit 0
fi 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." echo "::error::Chocolatey rejected the push with 403 before any server-side failure. Check CHOCOLATEY_API_KEY ownership/permissions for mcl-launcher."
exit 1 exit 1
fi fi
+23 -17
View File
@@ -50,27 +50,19 @@ Authentication is performed through Microsoft’s official services.
### macOS / Linux ### macOS / Linux
release builds include shell and Homebrew installers generated by prebuilt archives are attached to each GitHub release.
[`cargo-dist`](https://axodotdev.github.io/cargo-dist/).
```sh ```sh
# installer script # Homebrew
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/objz/mcl/releases/latest/download/mcl-launcher-installer.sh | sh
# Homebrew tap
brew install objz/tap/mcl-launcher brew install objz/tap/mcl-launcher
``` ```
### Windows ### Windows
release builds include a PowerShell installer and an MSI. WinGet and Chocolatey release builds include a `.zip` archive and an `.msi`. WinGet and Chocolatey
packages are submitted from release CI and become available after repository packages are submitted from release CI and become available after review.
review.
```powershell ```powershell
# installer script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/objz/mcl/releases/latest/download/mcl-launcher-installer.ps1 | iex"
# WinGet # WinGet
winget install Objz.MclLauncher winget install Objz.MclLauncher
@@ -80,10 +72,6 @@ choco install mcl-launcher
### Arch Linux ### 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 ```sh
# from source (release tarball) # from source (release tarball)
paru -S mcl-launcher paru -S mcl-launcher
@@ -95,7 +83,25 @@ paru -S mcl-launcher-bin
paru -S mcl-launcher-git 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 ### from source