10 Commits
Author SHA1 Message Date
objz de6af2de18 ci: fixed aur checksums and chocolatey workflow 2026-04-27 13:17:41 +02:00
objz ff7bb55faa ci: fixed duplicate runs 2026-04-27 12:54:27 +02:00
objz 495a4b3fa1 ci: fixed chocolatey workflow and hombrew 2026-04-27 12:51:29 +02:00
objz 3d8b3deb74 ci: fixed aur checksums and workflows 2026-04-27 12:32:31 +02:00
objz ec378b0b59 fix: trigger release workflow via dispatch after creating tag
API-created tags don't emit push events, so the release workflow
never started. Now tag-release explicitly dispatches the release
workflow after creating the tag.
2026-04-26 22:10:44 +02:00
objz a0a03a8f8f fix: tag-release re-tags when existing tag points to wrong commit
Previously if a tag already existed (e.g. from a failed release),
tag-release would skip because the version matched the latest tag.
Now it detects stale tags pointing to the wrong SHA and re-creates them.
2026-04-26 22:09:01 +02:00
objz 2acbec94c9 ci: fixexed tag release failing 2026-04-26 22:06:43 +02:00
objz ec016293cb Merge branch 'master' of https://github.com/objz/mcl 2026-04-26 22:03:28 +02:00
objz b4b1b0ffca fix: release workflow fixes and version bump to 0.2.4
- Fix AUR mcl-launcher-bin package path for dist tarballs
- Fix WinGet manifest validation by removing leftover sha256 file
- Use RELEASE_TOKEN for homebrew tap access
- Restore git-cliff changelog in GitHub releases
- Remove shell/powershell installer scripts from dist config
2026-04-26 22:02:23 +02:00
objz 0a7f9282cc fix: release workflow fixes and version bump to 0.2.4
- Fix AUR mcl-launcher-bin package path for dist tarballs
- Fix WinGet manifest validation by removing leftover sha256 file
- Use RELEASE_TOKEN for homebrew tap access
- Restore git-cliff changelog in GitHub releases
- Remove shell/powershell installer scripts from dist config
2026-04-26 21:59:59 +02:00
10 changed files with 335 additions and 120 deletions

No files matched your search

+2
View File
@@ -18,6 +18,8 @@ jobs:
- name: install Rust - name: install Rust
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: install JDK - name: install JDK
uses: actions/setup-java@v5 uses: actions/setup-java@v5
+2 -1
View File
@@ -1,4 +1,4 @@
name: publish AUR name: publish aur
on: on:
workflow_call: workflow_call:
@@ -55,6 +55,7 @@ jobs:
- name: prepare mcl-launcher-bin - name: prepare mcl-launcher-bin
run: | run: |
sed -i "s|^pkgver=.*|pkgver=${{ steps.version.outputs.version }}|" pkg/mcl-launcher-bin/PKGBUILD sed -i "s|^pkgver=.*|pkgver=${{ steps.version.outputs.version }}|" pkg/mcl-launcher-bin/PKGBUILD
sed -i "s|^pkgrel=.*|pkgrel=1|" pkg/mcl-launcher-bin/PKGBUILD
cp pkg/mcl-launcher-bin/PKGBUILD PKGBUILD cp pkg/mcl-launcher-bin/PKGBUILD PKGBUILD
rm -f .SRCINFO rm -f .SRCINFO
+49 -4
View File
@@ -1,4 +1,4 @@
name: publish Chocolatey name: publish chocolatey
on: on:
workflow_call: workflow_call:
@@ -16,12 +16,21 @@ jobs:
env: env:
PLAN: ${{ inputs.plan }} PLAN: ${{ inputs.plan }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
with: with:
ref: ${{ fromJson(inputs.plan).announcement_tag }} ref: ${{ fromJson(inputs.plan).announcement_tag }}
- name: verify Chocolatey publishing secret
shell: bash
run: |
if [ -z "${CHOCOLATEY_API_KEY}" ]; then
echo "::error::CHOCOLATEY_API_KEY is required to publish mcl-launcher to Chocolatey."
exit 1
fi
- name: prepare Chocolatey package - name: prepare Chocolatey package
id: package id: package
shell: bash shell: bash
@@ -48,6 +57,42 @@ jobs:
args: pack ${{ steps.package.outputs.package_dir }}/mcl-launcher.nuspec --version ${{ steps.package.outputs.version }} --output-directory target/chocolatey/out args: pack ${{ steps.package.outputs.package_dir }}/mcl-launcher.nuspec --version ${{ steps.package.outputs.version }} --output-directory target/chocolatey/out
- name: push Chocolatey package - name: push Chocolatey package
uses: crazy-max/ghaction-chocolatey@v4 shell: bash
with: run: |
args: push target/chocolatey/out/mcl-launcher.${{ steps.package.outputs.version }}.nupkg --source "https://push.chocolatey.org/" --api-key "${{ secrets.CHOCOLATEY_API_KEY }}" package="target/chocolatey/out/mcl-launcher.${{ steps.package.outputs.version }}.nupkg"
saw_server_error=false
for attempt in 1 2 3; do
log_file="$RUNNER_TEMP/chocolatey-push-${attempt}.log"
if docker run --rm --workdir /wksp --volume "$PWD:/wksp" ghcr.io/crazy-max/chocolatey push "$package" --source "https://push.chocolatey.org/" --api-key "$CHOCOLATEY_API_KEY" --timeout 2700 2>&1 | tee "$log_file"; then
exit 0
fi
if grep -q "409 (Conflict)" "$log_file"; then
echo "::warning::Chocolatey package version already exists; treating this publish as complete."
exit 0
fi
if grep -qE "50[0-9] \\(" "$log_file"; then
saw_server_error=true
fi
if grep -q "403 (Forbidden)" "$log_file"; then
if [ "$saw_server_error" = "true" ]; then
echo "::warning::Chocolatey returned 403 after an earlier server error. The previous push may have been accepted and put into 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
if [ "$attempt" -eq 3 ]; then
break
fi
sleep $((attempt * 30))
done
exit 1
+19 -1
View File
@@ -1,11 +1,24 @@
name: publish crates name: publish crates
on: on:
workflow_dispatch:
inputs:
plan:
required: true
type: string
dry_run:
required: false
type: boolean
default: true
workflow_call: workflow_call:
inputs: inputs:
plan: plan:
required: true required: true
type: string type: string
dry_run:
required: false
type: boolean
default: false
permissions: permissions:
contents: read contents: read
@@ -23,6 +36,11 @@ jobs:
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
- name: publish to crates.io - name: publish to crates.io
run: cargo publish --allow-dirty run: |
if [ "${{ inputs.dry_run }}" = "true" ]; then
cargo publish --allow-dirty --dry-run
else
cargo publish --allow-dirty
fi
env: env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
+55 -50
View File
@@ -1,4 +1,4 @@
name: publish WinGet name: publish winget
on: on:
workflow_call: workflow_call:
@@ -35,61 +35,66 @@ jobs:
Invoke-WebRequest -Uri $checksumUrl -OutFile "$packagePath/$checksumFile" Invoke-WebRequest -Uri $checksumUrl -OutFile "$packagePath/$checksumFile"
$checksum = (((Get-Content "$packagePath/$checksumFile" -Raw) -split '\s+')[0]).ToUpperInvariant() $checksum = (((Get-Content "$packagePath/$checksumFile" -Raw) -split '\s+')[0]).ToUpperInvariant()
$versionManifest = @" $versionManifest = @(
PackageIdentifier: $identifier '# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.9.0.schema.json'
PackageVersion: $version "PackageIdentifier: $identifier"
DefaultLocale: en-US "PackageVersion: $version"
ManifestType: version 'DefaultLocale: en-US'
ManifestVersion: 1.9.0 'ManifestType: version'
"@ 'ManifestVersion: 1.9.0'
) -join "`n"
$versionManifest | Set-Content -Path "$packagePath/$identifier.yaml" -Encoding utf8 $versionManifest | Set-Content -Path "$packagePath/$identifier.yaml" -Encoding utf8
$installerManifest = @" $installerManifest = @(
PackageIdentifier: $identifier '# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.9.0.schema.json'
PackageVersion: $version "PackageIdentifier: $identifier"
InstallerType: wix "PackageVersion: $version"
Scope: machine 'InstallerType: wix'
InstallerSwitches: 'Scope: machine'
Silent: /quiet /norestart 'InstallerSwitches:'
SilentWithProgress: /passive /norestart ' Silent: /quiet /norestart'
UpgradeBehavior: install ' SilentWithProgress: /passive /norestart'
Commands: 'UpgradeBehavior: install'
- mcl 'Commands:'
Installers: '- mcl'
- Architecture: x64 'Installers:'
InstallerUrl: $installerUrl '- Architecture: x64'
InstallerSha256: $checksum " InstallerUrl: $installerUrl"
ManifestType: installer " InstallerSha256: $checksum"
ManifestVersion: 1.9.0 'ManifestType: installer'
"@ 'ManifestVersion: 1.9.0'
) -join "`n"
$installerManifest | Set-Content -Path "$packagePath/$identifier.installer.yaml" -Encoding utf8 $installerManifest | Set-Content -Path "$packagePath/$identifier.installer.yaml" -Encoding utf8
$localeManifest = @" $localeManifest = @(
PackageIdentifier: $identifier '# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.9.0.schema.json'
PackageVersion: $version "PackageIdentifier: $identifier"
PackageLocale: en-US "PackageVersion: $version"
Publisher: objz 'PackageLocale: en-US'
PublisherUrl: https://github.com/objz 'Publisher: objz'
PublisherSupportUrl: https://github.com/objz/mcl/issues 'PublisherUrl: https://github.com/objz'
Author: objz 'PublisherSupportUrl: https://github.com/objz/mcl/issues'
PackageName: mcl-launcher 'Author: objz'
PackageUrl: https://github.com/objz/mcl 'PackageName: mcl-launcher'
License: GPL-3.0-only 'PackageUrl: https://github.com/objz/mcl'
LicenseUrl: https://github.com/objz/mcl/blob/master/LICENSE 'License: GPL-3.0-only'
Copyright: Copyright (c) objz 'LicenseUrl: https://github.com/objz/mcl/blob/master/LICENSE'
ShortDescription: Minecraft launcher TUI 'Copyright: Copyright (c) objz'
Description: A fully featured Minecraft launcher TUI with Microsoft account authentication, instance management, mod loaders, imports, content management, and launch support. 'ShortDescription: Minecraft launcher TUI'
Moniker: mcl 'Description: A fully featured Minecraft launcher TUI with Microsoft account authentication, instance management, mod loaders, imports, content management, and launch support.'
Tags: 'Moniker: mcl'
- minecraft 'Tags:'
- launcher '- minecraft'
- cli '- launcher'
- tui '- cli'
ManifestType: defaultLocale '- tui'
ManifestVersion: 1.9.0 'ManifestType: defaultLocale'
"@ 'ManifestVersion: 1.9.0'
) -join "`n"
$localeManifest | Set-Content -Path "$packagePath/$identifier.locale.en-US.yaml" -Encoding utf8 $localeManifest | Set-Content -Path "$packagePath/$identifier.locale.en-US.yaml" -Encoding utf8
Remove-Item "$packagePath/$checksumFile"
"path=$packagePath" >> $env:GITHUB_OUTPUT "path=$packagePath" >> $env:GITHUB_OUTPUT
- name: submit WinGet manifest - name: submit WinGet manifest
+75 -10
View File
@@ -13,7 +13,7 @@
# Note that the GitHub Release will be created with a generated # Note that the GitHub Release will be created with a generated
# title/body based on your changelogs. # title/body based on your changelogs.
name: Release name: release
permissions: permissions:
"contents": "write" "contents": "write"
@@ -40,6 +40,7 @@ permissions:
# will be marked as a prerelease. # will be marked as a prerelease.
on: on:
pull_request: pull_request:
workflow_dispatch:
push: push:
tags: tags:
- '**[0-9]+.[0-9]+.[0-9]+*' - '**[0-9]+.[0-9]+.[0-9]+*'
@@ -106,7 +107,7 @@ jobs:
# Typically there will be: # Typically there will be:
# - 1 "global" task that builds universal installers # - 1 "global" task that builds universal installers
# - N "local" tasks that build each platform's binaries and platform-specific installers # - N "local" tasks that build each platform's binaries and platform-specific installers
matrix: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix }} matrix: ${{ fromJson(needs.plan.outputs.val || '{"ci":{"github":{"artifacts_matrix":{"include":[]}}}}').ci.github.artifacts_matrix }}
runs-on: ${{ matrix.runner }} runs-on: ${{ matrix.runner }}
container: ${{ matrix.container && matrix.container.image || null }} container: ${{ matrix.container && matrix.container.image || null }}
env: env:
@@ -234,6 +235,8 @@ jobs:
with: with:
persist-credentials: false persist-credentials: false
submodules: recursive submodules: recursive
fetch-depth: 0
fetch-tags: true
- name: Install cached dist - name: Install cached dist
uses: actions/download-artifact@v7 uses: actions/download-artifact@v7
with: with:
@@ -269,17 +272,67 @@ jobs:
merge-multiple: true merge-multiple: true
- name: Cleanup - name: Cleanup
run: | run: |
# Remove the granular manifests # Remove internal cargo-dist manifests from the public GitHub Release.
rm -f artifacts/*-dist-manifest.json rm -f artifacts/*-dist-manifest.json artifacts/dist-manifest.json
- name: Generate changelog
id: changelog
uses: orhun/git-cliff-action@v4
with:
args: --latest --strip header
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub Release - name: Create GitHub Release
env: env:
PRERELEASE_FLAG: "${{ fromJson(steps.host.outputs.manifest).announcement_is_prerelease && '--prerelease' || '' }}" PRERELEASE_FLAG: "${{ fromJson(steps.host.outputs.manifest).announcement_is_prerelease && '--prerelease' || '' }}"
ANNOUNCEMENT_TITLE: "${{ fromJson(steps.host.outputs.manifest).announcement_title }}" ANNOUNCEMENT_TITLE: "${{ fromJson(steps.host.outputs.manifest).announcement_title }}"
ANNOUNCEMENT_BODY: "${{ fromJson(steps.host.outputs.manifest).announcement_github_body }}"
RELEASE_COMMIT: "${{ github.sha }}" RELEASE_COMMIT: "${{ github.sha }}"
CHANGELOG: "${{ steps.changelog.outputs.content }}"
RELEASE_TAG: "${{ needs.plan.outputs.tag }}"
run: | run: |
# Write and read notes from a file to avoid quoting breaking things echo "$CHANGELOG" > $RUNNER_TEMP/notes.txt
echo "$ANNOUNCEMENT_BODY" > $RUNNER_TEMP/notes.txt cat >> $RUNNER_TEMP/notes.txt <<EOF
## Downloads
| File | Platform | Checksum |
| --- | --- | --- |
| [mcl-launcher-aarch64-apple-darwin.tar.xz](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-aarch64-apple-darwin.tar.xz) | Apple Silicon macOS | [checksum](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-aarch64-apple-darwin.tar.xz.sha256) |
| [mcl-launcher-x86_64-apple-darwin.tar.xz](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-apple-darwin.tar.xz) | Intel macOS | [checksum](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-apple-darwin.tar.xz.sha256) |
| [mcl-launcher-x86_64-pc-windows-msvc.zip](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-pc-windows-msvc.zip.sha256) |
| [mcl-launcher-x86_64-pc-windows-msvc.msi](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-pc-windows-msvc.msi) | x64 Windows | [checksum](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-pc-windows-msvc.msi.sha256) |
| [mcl-launcher-aarch64-unknown-linux-gnu.tar.xz](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-aarch64-unknown-linux-gnu.tar.xz) | ARM64 Linux | [checksum](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-aarch64-unknown-linux-gnu.tar.xz.sha256) |
| [mcl-launcher-x86_64-unknown-linux-gnu.tar.xz](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-unknown-linux-gnu.tar.xz) | x64 Linux | [checksum](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-unknown-linux-gnu.tar.xz.sha256) |
## Cargo
\`\`\`
cargo install mcl-launcher
\`\`\`
## Homebrew
\`\`\`
brew install objz/tap/mcl-launcher
\`\`\`
## WinGet
\`\`\`
winget install Objz.MclLauncher
\`\`\`
## Chocolatey
\`\`\`
choco install mcl-launcher
\`\`\`
## AUR
\`\`\`
paru -S mcl-launcher-bin
\`\`\`
EOF
gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/* gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*
@@ -291,6 +344,7 @@ jobs:
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PLAN: ${{ needs.plan.outputs.val }} PLAN: ${{ needs.plan.outputs.val }}
HOMEBREW_TAP_REPOSITORY: "objz/homebrew-tap"
GITHUB_USER: "axo bot" GITHUB_USER: "axo bot"
GITHUB_EMAIL: "admin+bot@axo.dev" GITHUB_EMAIL: "admin+bot@axo.dev"
if: ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }} if: ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }}
@@ -298,7 +352,7 @@ jobs:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
with: with:
persist-credentials: true persist-credentials: true
repository: "objz/homebrew-tap" repository: ${{ env.HOMEBREW_TAP_REPOSITORY }}
token: ${{ secrets.HOMEBREW_TAP_TOKEN }} token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
# So we have access to the formula # So we have access to the formula
- name: Fetch homebrew formulae - name: Fetch homebrew formulae
@@ -313,6 +367,7 @@ jobs:
run: | run: |
git config --global user.name "${GITHUB_USER}" git config --global user.name "${GITHUB_USER}"
git config --global user.email "${GITHUB_EMAIL}" git config --global user.email "${GITHUB_EMAIL}"
starting_commit="$(git rev-parse HEAD)"
for release in $(echo "$PLAN" | jq --compact-output '.releases[] | select([.artifacts[] | endswith(".rb")] | any)'); do for release in $(echo "$PLAN" | jq --compact-output '.releases[] | select([.artifacts[] | endswith(".rb")] | any)'); do
filename=$(echo "$release" | jq '.artifacts[] | select(endswith(".rb"))' --raw-output) filename=$(echo "$release" | jq '.artifacts[] | select(endswith(".rb"))' --raw-output)
@@ -325,9 +380,18 @@ jobs:
brew style --except-cops FormulaAudit/Homepage,FormulaAudit/Desc,FormulaAuditStrict --fix "Formula/${filename}" || true brew style --except-cops FormulaAudit/Homepage,FormulaAudit/Desc,FormulaAuditStrict --fix "Formula/${filename}" || true
git add "Formula/${filename}" git add "Formula/${filename}"
git commit -m "${name} ${version}" if git diff --cached --quiet; then
echo "Formula/${filename} is unchanged"
else
git commit -m "${name} ${version}"
fi
done done
git push
if [ "$(git rev-parse HEAD)" = "$starting_commit" ]; then
echo "No Homebrew formula changes to push"
else
git push
fi
custom-publish-crates: custom-publish-crates:
needs: needs:
@@ -337,6 +401,7 @@ jobs:
uses: ./.github/workflows/publish-crates.yml uses: ./.github/workflows/publish-crates.yml
with: with:
plan: ${{ needs.plan.outputs.val }} plan: ${{ needs.plan.outputs.val }}
dry_run: false
secrets: inherit secrets: inherit
# publish jobs get escalated permissions # publish jobs get escalated permissions
permissions: permissions:
Generated
+124 -48
View File
@@ -19,13 +19,13 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
[[package]] [[package]]
name = "aes" name = "aes"
version = "0.8.4" version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" checksum = "66bd29a732b644c0431c6140f370d097879203d79b80c94a6747ba0872adaef8"
dependencies = [ dependencies = [
"cfg-if",
"cipher", "cipher",
"cpufeatures", "cpubits",
"cpufeatures 0.3.0",
] ]
[[package]] [[package]]
@@ -234,6 +234,16 @@ dependencies = [
"generic-array", "generic-array",
] ]
[[package]]
name = "block-buffer"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdd35008169921d80bc60d3d0ab416eecb028c4cd653352907921d95084790be"
dependencies = [
"hybrid-array",
"zeroize",
]
[[package]] [[package]]
name = "bon" name = "bon"
version = "3.9.1" version = "3.9.1"
@@ -323,9 +333,9 @@ dependencies = [
[[package]] [[package]]
name = "cc" name = "cc"
version = "1.2.60" version = "1.2.61"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43c5703da9466b66a946814e1adf53ea2c90f10063b86290cc9eb67ce3478a20" checksum = "d16d90359e986641506914ba71350897565610e87ce0ad9e6f28569db3dd5c6d"
dependencies = [ dependencies = [
"find-msvc-tools", "find-msvc-tools",
"jobserver", "jobserver",
@@ -361,11 +371,11 @@ dependencies = [
[[package]] [[package]]
name = "cipher" name = "cipher"
version = "0.4.4" version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" checksum = "e34d8227fe1ba289043aeb13792056ff80fd6de1a9f49137a5f499de8e8c78ea"
dependencies = [ dependencies = [
"crypto-common", "crypto-common 0.2.1",
"inout", "inout",
] ]
@@ -396,6 +406,12 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
[[package]]
name = "cmov"
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f88a43d011fc4a6876cb7344703e297c71dda42494fee094d5f7c76bf13f746"
[[package]] [[package]]
name = "color-eyre" name = "color-eyre"
version = "0.6.5" version = "0.6.5"
@@ -464,6 +480,12 @@ dependencies = [
"yaml-rust2", "yaml-rust2",
] ]
[[package]]
name = "const-oid"
version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c"
[[package]] [[package]]
name = "const-random" name = "const-random"
version = "0.1.18" version = "0.1.18"
@@ -514,6 +536,12 @@ version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
[[package]]
name = "cpubits"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5ef0c543070d296ea414df2dd7625d1b24866ce206709d8a4a424f28377f5861"
[[package]] [[package]]
name = "cpufeatures" name = "cpufeatures"
version = "0.2.17" version = "0.2.17"
@@ -523,6 +551,15 @@ dependencies = [
"libc", "libc",
] ]
[[package]]
name = "cpufeatures"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
dependencies = [
"libc",
]
[[package]] [[package]]
name = "crc32fast" name = "crc32fast"
version = "1.5.0" version = "1.5.0"
@@ -627,6 +664,15 @@ dependencies = [
"typenum", "typenum",
] ]
[[package]]
name = "crypto-common"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77727bb15fa921304124b128af125e7e3b968275d1b108b379190264f4423710"
dependencies = [
"hybrid-array",
]
[[package]] [[package]]
name = "csscolorparser" name = "csscolorparser"
version = "0.6.2" version = "0.6.2"
@@ -637,6 +683,15 @@ dependencies = [
"phf", "phf",
] ]
[[package]]
name = "ctutils"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e"
dependencies = [
"cmov",
]
[[package]] [[package]]
name = "darling" name = "darling"
version = "0.21.3" version = "0.21.3"
@@ -778,9 +833,21 @@ version = "0.10.7"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
dependencies = [ dependencies = [
"block-buffer", "block-buffer 0.10.4",
"crypto-common", "crypto-common 0.1.7",
"subtle", ]
[[package]]
name = "digest"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4850db49bf08e663084f7fb5c87d202ef91a3907271aff24a94eb97ff039153c"
dependencies = [
"block-buffer 0.12.0",
"const-oid",
"crypto-common 0.2.1",
"ctutils",
"zeroize",
] ]
[[package]] [[package]]
@@ -1223,11 +1290,11 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
[[package]] [[package]]
name = "hmac" name = "hmac"
version = "0.12.1" version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" checksum = "6303bc9732ae41b04cb554b844a762b4115a61bfaa81e3e83050991eeb56863f"
dependencies = [ dependencies = [
"digest", "digest 0.11.2",
] ]
[[package]] [[package]]
@@ -1269,6 +1336,15 @@ version = "1.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
[[package]]
name = "hybrid-array"
version = "0.4.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08d46837a0ed51fe95bd3b05de33cd64a1ee88fc797477ca48446872504507c5"
dependencies = [
"typenum",
]
[[package]] [[package]]
name = "hyper" name = "hyper"
version = "1.9.0" version = "1.9.0"
@@ -1539,11 +1615,11 @@ dependencies = [
[[package]] [[package]]
name = "inout" name = "inout"
version = "0.1.4" version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" checksum = "4250ce6452e92010fdf7268ccc5d14faa80bb12fc741938534c58f16804e03c7"
dependencies = [ dependencies = [
"generic-array", "hybrid-array",
] ]
[[package]] [[package]]
@@ -1617,9 +1693,9 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
[[package]] [[package]]
name = "jiff" name = "jiff"
version = "0.2.23" version = "0.2.24"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a3546dc96b6d42c5f24902af9e2538e82e39ad350b0c766eb3fbf2d8f3d8359" checksum = "f00b5dbd620d61dfdcb6007c9c1f6054ebd75319f163d886a9055cec1155073d"
dependencies = [ dependencies = [
"jiff-static", "jiff-static",
"jiff-tzdb-platform", "jiff-tzdb-platform",
@@ -1632,9 +1708,9 @@ dependencies = [
[[package]] [[package]]
name = "jiff-static" name = "jiff-static"
version = "0.2.23" version = "0.2.24"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a8c8b344124222efd714b73bb41f8b5120b27a7cc1c75593a6ff768d9d05aa4" checksum = "e000de030ff8022ea1da3f466fbb0f3a809f5e51ed31f6dd931c35181ad8e6d7"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
@@ -1767,9 +1843,9 @@ checksum = "b3a6a8c165077efc8f3a971534c50ea6a1a18b329ef4a66e897a7e3a1494565f"
[[package]] [[package]]
name = "libc" name = "libc"
version = "0.2.185" version = "0.2.186"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "52ff2c0fe9bc6cb6b14a0592c2ff4fa9ceb83eea9db979b0487cd054946a2b8f" checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
[[package]] [[package]]
name = "libm" name = "libm"
@@ -1879,7 +1955,7 @@ dependencies = [
[[package]] [[package]]
name = "mcl-launcher" name = "mcl-launcher"
version = "0.2.3" version = "0.2.4"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"chrono", "chrono",
@@ -2166,9 +2242,9 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
[[package]] [[package]]
name = "open" name = "open"
version = "5.3.3" version = "5.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43bb73a7fa3799b198970490a51174027ba0d4ec504b03cd08caf513d40024bc" checksum = "9f3bab717c29a857abf75fcef718d441ec7cb2725f937343c734740a985d37fd"
dependencies = [ dependencies = [
"is-wsl", "is-wsl",
"libc", "libc",
@@ -2276,11 +2352,11 @@ checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3"
[[package]] [[package]]
name = "pbkdf2" name = "pbkdf2"
version = "0.12.2" version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" checksum = "112d82ceb8c5bf524d9af484d4e4970c9fd5a0cc15ba14ad93dccd28873b0629"
dependencies = [ dependencies = [
"digest", "digest 0.11.2",
"hmac", "hmac",
] ]
@@ -3040,9 +3116,9 @@ dependencies = [
[[package]] [[package]]
name = "rustls" name = "rustls"
version = "0.23.38" version = "0.23.39"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "69f9466fb2c14ea04357e91413efb882e2a6d4a406e625449bc0a5d360d53a21" checksum = "7c2c118cb077cca2822033836dfb1b975355dfb784b5e8da48f7b6c5db74e60e"
dependencies = [ dependencies = [
"once_cell", "once_cell",
"ring", "ring",
@@ -3054,9 +3130,9 @@ dependencies = [
[[package]] [[package]]
name = "rustls-pki-types" name = "rustls-pki-types"
version = "1.14.0" version = "1.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd" checksum = "30a7197ae7eb376e574fe940d068c30fe0462554a3ddbe4eca7838e049c937a9"
dependencies = [ dependencies = [
"web-time", "web-time",
"zeroize", "zeroize",
@@ -3064,9 +3140,9 @@ dependencies = [
[[package]] [[package]]
name = "rustls-webpki" name = "rustls-webpki"
version = "0.103.12" version = "0.103.13"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8279bb85272c9f10811ae6a6c547ff594d6a7f3c6c6b02ee9726d1d0dcfcdd06" checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
dependencies = [ dependencies = [
"ring", "ring",
"rustls-pki-types", "rustls-pki-types",
@@ -3204,13 +3280,13 @@ dependencies = [
[[package]] [[package]]
name = "sha1" name = "sha1"
version = "0.10.6" version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" checksum = "aacc4cc499359472b4abe1bf11d0b12e688af9a805fa5e3016f9a386dc2d0214"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"cpufeatures", "cpufeatures 0.3.0",
"digest", "digest 0.11.2",
] ]
[[package]] [[package]]
@@ -3220,8 +3296,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"cpufeatures", "cpufeatures 0.2.17",
"digest", "digest 0.10.7",
] ]
[[package]] [[package]]
@@ -3936,9 +4012,9 @@ checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
[[package]] [[package]]
name = "typenum" name = "typenum"
version = "1.19.0" version = "1.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" checksum = "40ce102ab67701b8526c123c1bab5cbe42d7040ccfd0f64af1a385808d2f43de"
[[package]] [[package]]
name = "ucd-trie" name = "ucd-trie"
@@ -4646,9 +4722,9 @@ checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
[[package]] [[package]]
name = "winnow" name = "winnow"
version = "1.0.1" version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09dac053f1cd375980747450bfc7250c264eaae0583872e845c0c7cd578872b5" checksum = "2ee1708bef14716a11bae175f579062d4554d95be2c6829f518df847b7b3fdd0"
dependencies = [ dependencies = [
"memchr", "memchr",
] ]
@@ -4878,9 +4954,9 @@ dependencies = [
[[package]] [[package]]
name = "zip" name = "zip"
version = "8.5.1" version = "8.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dcab981e19633ebcf0b001ddd37dd802996098bc1864f90b7c5d970ce76c1d59" checksum = "2d04a6b5381502aa6087c94c669499eb1602eb9c5e8198e534de571f7154809b"
dependencies = [ dependencies = [
"aes", "aes",
"bzip2", "bzip2",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "mcl-launcher" name = "mcl-launcher"
version = "0.2.3" version = "0.2.4"
authors = ["objz"] authors = ["objz"]
edition = "2024" edition = "2024"
description = "A fully featured Minecraft launcher TUI" description = "A fully featured Minecraft launcher TUI"
+3 -1
View File
@@ -8,7 +8,7 @@ cargo-dist-version = "0.31.0"
# CI backends to support # CI backends to support
ci = "github" ci = "github"
# The installers to generate for each app # The installers to generate for each app
installers = ["shell", "powershell", "homebrew", "msi"] installers = ["homebrew", "msi"]
# A GitHub repo to push Homebrew formulas to # A GitHub repo to push Homebrew formulas to
tap = "objz/homebrew-tap" tap = "objz/homebrew-tap"
# Target platforms to build apps for (Rust target-triple syntax) # Target platforms to build apps for (Rust target-triple syntax)
@@ -25,3 +25,5 @@ github-build-setup = "../dist-build-setup.yml"
hosting = "github" hosting = "github"
# Whether to install an updater program # Whether to install an updater program
install-updater = false install-updater = false
# Allow custom edits to the generated CI file
allow-dirty = ["ci"]
+5 -4
View File
@@ -1,7 +1,7 @@
# Maintainer: objz <me@objz.dev> # Maintainer: objz <me@objz.dev>
pkgname=mcl-launcher-bin pkgname=mcl-launcher-bin
pkgver=0.2.0 pkgver=0.2.0
pkgrel=1 pkgrel=2
pkgdesc="Minecraft launcher TUI" pkgdesc="Minecraft launcher TUI"
arch=('x86_64' 'aarch64') arch=('x86_64' 'aarch64')
url="https://github.com/objz/mcl" url="https://github.com/objz/mcl"
@@ -10,14 +10,15 @@ depends=()
provides=('mcl-launcher') provides=('mcl-launcher')
conflicts=('mcl-launcher' 'mcl-launcher-git') conflicts=('mcl-launcher' 'mcl-launcher-git')
source=("LICENSE-${pkgver}::${url}/raw/v${pkgver}/LICENSE" "README-${pkgver}::${url}/raw/v${pkgver}/README.md") source=("LICENSE-${pkgver}::${url}/raw/v${pkgver}/LICENSE" "README-${pkgver}::${url}/raw/v${pkgver}/README.md")
source_x86_64=("${url}/releases/download/v${pkgver}/mcl-launcher-x86_64-unknown-linux-gnu.tar.xz") source_x86_64=("mcl-launcher-${pkgver}-x86_64-unknown-linux-gnu.tar.xz::${url}/releases/download/v${pkgver}/mcl-launcher-x86_64-unknown-linux-gnu.tar.xz")
source_aarch64=("${url}/releases/download/v${pkgver}/mcl-launcher-aarch64-unknown-linux-gnu.tar.xz") source_aarch64=("mcl-launcher-${pkgver}-aarch64-unknown-linux-gnu.tar.xz::${url}/releases/download/v${pkgver}/mcl-launcher-aarch64-unknown-linux-gnu.tar.xz")
sha256sums=('SKIP' 'SKIP') sha256sums=('SKIP' 'SKIP')
sha256sums_x86_64=('SKIP') sha256sums_x86_64=('SKIP')
sha256sums_aarch64=('SKIP') sha256sums_aarch64=('SKIP')
package() { package() {
install -Dm755 mcl "$pkgdir/usr/bin/mcl" local _dir="mcl-launcher-${CARCH}-unknown-linux-gnu"
install -Dm755 "$_dir/mcl" "$pkgdir/usr/bin/mcl"
install -Dm644 "LICENSE-${pkgver}" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm644 "LICENSE-${pkgver}" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "README-${pkgver}" "$pkgdir/usr/share/doc/$pkgname/README.md" install -Dm644 "README-${pkgver}" "$pkgdir/usr/share/doc/$pkgname/README.md"
} }