minecraft-launcher-libs/README.md

37 lines
811 B
Markdown
Raw Permalink 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:
2023-07-31 23:17:53 +03:00
mc-libs-string <system> <version.json>
2022-08-28 22:16:52 +03:00
<system> - w|l|x (windows or linux or osx)
Other:
2023-07-31 23:17:53 +03:00
mc-libs-string i <version.json> - 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-07-31 18:05:20 +03:00
./mc-libs-string ./1.20.1.json x
2022-08-28 22:16:52 +03:00
```