fix: chocolatey issue and readme install
This commit is contained in:
1 parent
f226358b1c
commit
1dcd625ea2
2 files changed
+33
-17
No files matched your search
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
[](https://aur.archlinux.org/packages/mcl-launcher)
|
|
||||||
[](https://aur.archlinux.org/packages/mcl-launcher-bin)
|
|
||||||
[](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
|
||||||
|
|
||||||
|
[](https://github.com/objz/mcl/releases)
|
||||||
|
[](https://crates.io/crates/mcl-launcher)
|
||||||
|
[](https://github.com/objz/homebrew-tap)
|
||||||
|
[](https://winstall.app/apps/Objz.MclLauncher)
|
||||||
|
[](https://community.chocolatey.org/packages/mcl-launcher)
|
||||||
|
[](https://aur.archlinux.org/packages/mcl-launcher)
|
||||||
|
[](https://aur.archlinux.org/packages/mcl-launcher-bin)
|
||||||
|
[](https://aur.archlinux.org/packages/mcl-launcher-git)
|
||||||
|
[](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
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user