added readme and fixed git mismatch and added workflow for release

This commit is contained in:
objz committed 2026-04-19 15:28:04 +02:00
1 parent ab9d9dd7c3
commit 5a9a25adef
6 files changed
+309 -9

No files matched your search

+120
View File
@@ -0,0 +1,120 @@
name: build
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: write
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
artifact: mcl
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
artifact: mcl
- os: windows-latest
target: x86_64-pc-windows-msvc
artifact: mcl.exe
- os: macos-latest
target: x86_64-apple-darwin
artifact: mcl
- os: macos-latest
target: aarch64-apple-darwin
artifact: mcl
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.target }}
- name: install cross-compilation deps (aarch64-linux)
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
- name: install OpenSSL (linux x86_64)
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config
- name: build
env:
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
run: cargo build --release --target ${{ matrix.target }}
- name: package (unix)
if: runner.os != 'Windows'
run: |
cd target/${{ matrix.target }}/release
tar czf ../../../mcl-${{ matrix.target }}.tar.gz ${{ matrix.artifact }}
- name: package (windows)
if: runner.os == 'Windows'
run: |
cd target/${{ matrix.target }}/release
Compress-Archive -Path ${{ matrix.artifact }} -DestinationPath ../../../mcl-${{ matrix.target }}.zip
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: mcl-${{ matrix.target }}
path: mcl-${{ matrix.target }}.*
release:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
steps:
- uses: actions/checkout@v4
- name: get version
id: version
run: |
version=$(grep '^version' Cargo.toml | head -1 | sed 's/.*"\(.*\)".*/\1/')
echo "version=$version" >> "$GITHUB_OUTPUT"
echo "tag=v$version" >> "$GITHUB_OUTPUT"
- name: check if release exists
id: check
run: |
if gh release view "${{ steps.version.outputs.tag }}" > /dev/null 2>&1; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "exists=false" >> "$GITHUB_OUTPUT"
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: download artifacts
if: steps.check.outputs.exists == 'false'
uses: actions/download-artifact@v4
with:
path: artifacts
- name: create release
if: steps.check.outputs.exists == 'false'
run: |
gh release create "${{ steps.version.outputs.tag }}" \
--title "${{ steps.version.outputs.tag }}" \
--generate-notes \
artifacts/mcl-*/*
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+129
View File
@@ -0,0 +1,129 @@
<div align="center">
# mcl
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![GPL-3.0 License][license-shield]][license-url]
**MineCraft Launcher. or MineCraft cLi. pick whichever sounds better to you.**
<!-- ![screenshot](assets/screenshot.png) -->
[Report Bug](https://github.com/objz/mcl/issues) · [Request Feature](https://github.com/objz/mcl/issues)
</div>
---
## about
we all love TUIs. and we all know the official Minecraft launcher is not exactly a joy to use. so here's mcl, a fully featured Minecraft launcher that lives in your terminal. written in Rust because if you're replacing something bloated you might as well go all the way.
it does everything you'd expect from a launcher. multiple instances, mod loaders, modpack imports, Microsoft auth, content management, launching. all from a TUI or from the command line. the TUI is the main thing though, the CLI is there for scripting and automation.
## features
| | |
|---|---|
| **instances** | create and manage multiple instances, each with their own version, loader, mods, and settings |
| **mod loaders** | vanilla, Fabric, Quilt, Forge, NeoForge. more might show up later |
| **content** | browse and toggle mods, shaders, resource packs. view worlds, screenshots, and logs |
| **modpack import** | import from Modrinth via `.mrpack` file, URL, or slug |
| **accounts** | multiple Microsoft accounts and offline players, switch between them |
| **launching** | launch directly from the TUI or generate a desktop shortcut for any instance |
| **desktop shortcuts** | click it and Minecraft starts, no need to open mcl or type anything |
| **CLI** | every feature the TUI has is also available as a subcommand |
| **theming** | 10 built-in themes, custom themes, color overrides |
---
## installation
### 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
# prebuilt binary
paru -S mcl-launcher-bin
# latest git
paru -S mcl-launcher-git
```
### from source
requires a Rust toolchain and OpenSSL.
```sh
git clone https://github.com/objz/mcl.git
cd mcl
cargo build --release
```
### other platforms
mcl can be compiled for Linux, macOS, and Windows. right now it's only packaged for Arch Linux (AUR) but official packages for other platforms and package managers will be added continuously.
---
## where things live
| path | what |
|---|---|
| `~/.config/mcl/config.toml` | general config (paths, memory defaults, UI settings) |
| `~/.config/mcl/theme.toml` | theme, border style, color overrides |
| `~/.config/mcl/accounts.json` | accounts |
| `~/.local/share/mcl/instances/` | instances, each in its own directory |
| `~/.local/share/mcl/meta/` | cached game metadata, libraries, assets, loader profiles |
each instance has an `instance.json` for its config and a `.minecraft/` directory with the actual game files. standard layout, nothing weird.
---
## configuration
everything is configured through TOML files. `config.toml` for paths, default memory allocation, and UI behavior. `theme.toml` for theme selection and border style. you can also override individual colors without making a full custom theme.
---
## themes
mcl ships with 10 built-in themes:
`catppuccin` · `dracula` · `nord` · `gruvbox` · `one-dark` · `solarized` · `tailwind` · `tokyo-night` · `rose-pine` · `terminal`
you can create your own by dropping a TOML file in `~/.config/mcl/theme/` and referencing it by name, or point to an absolute path.
---
## contributing
contributions are welcome. fork it, branch it, PR it. make sure `cargo clippy` and `cargo test` pass before opening a PR.
---
## license
GPL-3.0. see [LICENSE](LICENSE).
---
[contributors-shield]: https://img.shields.io/github/contributors/objz/mcl.svg?style=for-the-badge
[contributors-url]: https://github.com/objz/mcl/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/objz/mcl.svg?style=for-the-badge
[forks-url]: https://github.com/objz/mcl/network/members
[stars-shield]: https://img.shields.io/github/stars/objz/mcl.svg?style=for-the-badge
[stars-url]: https://github.com/objz/mcl/stargazers
[issues-shield]: https://img.shields.io/github/issues/objz/mcl.svg?style=for-the-badge
[issues-url]: https://github.com/objz/mcl/issues
[license-shield]: https://img.shields.io/github/license/objz/mcl.svg?style=for-the-badge
[license-url]: https://github.com/objz/mcl/blob/master/LICENSE
Binary file not shown.

After

Width:  |  Height:  |  Size: 389 KiB

+22
View File
@@ -0,0 +1,22 @@
# Maintainer: objz <me@objz.dev>
pkgname=mcl-launcher-bin
pkgver=0.1.0
pkgrel=1
pkgdesc="Minecraft launcher TUI"
arch=('x86_64' 'aarch64')
url="https://github.com/objz/mcl"
license=('GPL-3.0-only')
depends=('openssl')
provides=('mcl-launcher')
conflicts=('mcl-launcher' 'mcl-launcher-git')
source=("LICENSE-${pkgver}::${url}/raw/v${pkgver}/LICENSE")
source_x86_64=("${url}/releases/download/v${pkgver}/mcl-x86_64-unknown-linux-gnu.tar.gz")
source_aarch64=("${url}/releases/download/v${pkgver}/mcl-aarch64-unknown-linux-gnu.tar.gz")
sha256sums=('SKIP')
sha256sums_x86_64=('SKIP')
sha256sums_aarch64=('SKIP')
package() {
install -Dm755 mcl "$pkgdir/usr/bin/mcl"
install -Dm644 "LICENSE-${pkgver}" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
+8 -9
View File
@@ -1,15 +1,15 @@
# Maintainer: objz <me@objz.dev>
pkgname=mcl-git
pkgver=r0.0000000
pkgname=mcl-launcher-git
pkgver=r116.ab9d9dd
pkgrel=1
pkgdesc="Minecraft launcher CLI"
pkgdesc="Minecraft launcher TUI"
arch=('x86_64' 'aarch64')
url="https://github.com/objz/mcl"
license=('GPL-3.0-only')
depends=()
makedepends=('git' 'rust' 'cargo')
provides=('mcl')
conflicts=('mcl')
depends=('openssl')
makedepends=('git' 'rust' 'cargo' 'openssl' 'pkgconf')
provides=('mcl-launcher')
conflicts=('mcl-launcher' 'mcl-launcher-bin')
source=("git+$url.git")
sha256sums=('SKIP')
@@ -31,6 +31,5 @@ check() {
package() {
cd "$srcdir/mcl"
install -Dm755 "target/release/mcl" "$pkgdir/usr/bin/mcl"
# install -Dm644 README.md "$pkgdir/usr/share/doc/mcl/README.md"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/mcl/LICENSE"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
+30
View File
@@ -0,0 +1,30 @@
# Maintainer: objz <me@objz.dev>
pkgname=mcl-launcher
pkgver=0.1.0
pkgrel=1
pkgdesc="Minecraft launcher TUI"
arch=('x86_64' 'aarch64')
url="https://github.com/objz/mcl"
license=('GPL-3.0-only')
depends=('openssl')
makedepends=('rust' 'cargo' 'openssl' 'pkgconf')
provides=('mcl-launcher')
conflicts=('mcl-launcher-bin' 'mcl-launcher-git')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('SKIP')
build() {
cd "$srcdir/mcl-${pkgver}"
cargo build --release --locked
}
check() {
cd "$srcdir/mcl-${pkgver}"
cargo test --release --locked
}
package() {
cd "$srcdir/mcl-${pkgver}"
install -Dm755 "target/release/mcl" "$pkgdir/usr/bin/mcl"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}