aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: c1c68253d26987db2fa2a5282361df768223ec86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Arch packages for Minecraft

This repository contains build scripts (PKGBUILDs and their generation scripts) to use Pacman as a Minecraft version manager.

Packages are separated into `minecraft-xxx` and `minecraft-assets-xxx`, because the later is huge and takes a long to package, and is also optional for some users.

I made a generator in C to fetch version JSONs and convert them into partial PKGBUILDs and launcher.gen files.

This repository does not contain any launchers. Instead, it exposes some variables from the manifest to launchers through launcher.gen files. Launchers should source them to run the game (see `launcher` as an example).

## makepkg

1. Compile the generator and generate `PKGBUILD.gen` and `launcher.gen`: `./switch 1.18.1`

2. Bulid and install the Minecraft package: `cd mc; makepkg`

3. (Optional) Build and install the assets package: `cd assets; makepkg`

Whenever you need to build a different Minecraft version, do the steps again (changing the arguments of `./switch` will cause it to generate new build files).

## Tested versions

1.18

1.17

1.13

Basic testing for 1.14, 1.15 and 1.16 (no assets)

## TODO

Fabric support

Forge support

## Known issues

Assets folders cannot be shared across versions (i.e. you must have a dedicated assets folder for each asset version).

Library compatibility issues with version <= 1.12: Inconsistency detected by ld.so: dl-lookup.c: 105: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!

## License

Thanks to my friends' help.

Minecraft itself is a proprietary software. Its files subject to its EULA and are not included in this repository.

The build scripts are licensed under GPL v2.