minecraft-launcher-libs/README.md

37 lines
817 B
Markdown
Raw Normal View History

2023-06-25 21:25:18 +03:00
# Parse `version.json` file and return libraries list
2022-08-28 22:09:37 +03:00
2023-06-25 21:25:18 +03:00
[Russian](README.ru.md) |
2023-06-25 21:26:27 +03:00
[English](README.md)
2022-08-28 22:09:37 +03:00
**About:**
2023-06-25 21:25:18 +03:00
Utility for parse Minecraft JE game version file (`version.json`).
2022-09-14 00:34:25 +03:00
2022-08-28 22:09:37 +03:00
**How to use:**
2022-08-28 22:16:52 +03:00
```
Minecraft Libraries List Generator
Usage:
make-libs-string <version.json> <system>
<system> - w|l|x (windows or linux or osx)
Other:
2022-09-13 23:31:10 +03:00
make-libs-string <version.json> i - to get version info
2022-08-28 22:16:52 +03:00
```
Utility has two required arguments,
`<version.json>` and `<system>`.
* `version.json` - takes the path to the file.
2023-06-25 21:25:18 +03:00
* `system` - takes one of three values `w, l, x`, the letter of which corresponds to one of the operating systems.
2022-08-28 22:16:52 +03:00
2023-06-25 21:25:18 +03:00
**Example for
2023-06-25 21:26:27 +03:00
[1.20.1](https://piston-meta.mojang.com/v1/packages/715ccf3330885e75b205124f09f8712542cbe7e0/1.20.1.json)
2023-06-25 21:25:18 +03:00
version:**
2022-08-28 22:16:52 +03:00
```sh
2023-06-25 21:25:18 +03:00
./make-libs-string ./1.20.1.json x
2022-08-28 22:16:52 +03:00
```