add script for make libraries list
This commit is contained in:
parent
170be4769b
commit
bc16ba4342
3
.gitignore
vendored
3
.gitignore
vendored
@ -0,0 +1,3 @@
|
||||
env
|
||||
version.json
|
||||
libs.txt
|
@ -2,8 +2,8 @@ English help
|
||||
============
|
||||
## 1. Installing
|
||||
Download of [actually](https://github.com/iiiypuk/minecraft-launcher/releases/latest) version launcher.
|
||||
Next [download](https://www.minecraft.net/download) Minecraft and start Demo mode game **1.15.2** version. After successfully run close game.
|
||||
Download required [libraries](https://mega.nz/#F!hUNg0Y6I!93cYw1NZg4MUWUHaVrCO7w) for run game for **your system** and game version of **1.15.2**.
|
||||
Next [download](https://www.minecraft.net/download) Minecraft and start Demo mode. After successfully run close game.
|
||||
Download required [libraries](https://mega.nz/#F!hUNg0Y6I!93cYw1NZg4MUWUHaVrCO7w) for run game for **your system** and game **version**.
|
||||
|
||||
## 2. Client Minecraft
|
||||
By default script configured for run Minecraft from default directory:
|
||||
|
@ -2,8 +2,8 @@
|
||||
===============
|
||||
## 1. Установка
|
||||
Скачиваем [актуальную](https://github.com/iiiypuk/minecraft-launcher/releases/latest) версию лаунчера.
|
||||
Далее [скачиваем](https://www.minecraft.net/download) Minecraft и запускаем демо-режим версии **1.15.2**. После успешного запуска, закрываем игру.
|
||||
Скачиваем необходимые для запуска [библиотеки](https://mega.nz/#F!hUNg0Y6I!93cYw1NZg4MUWUHaVrCO7w) для **вашей системы** и версии игры **1.15.2**.
|
||||
Далее [скачиваем](https://www.minecraft.net/download) Minecraft и запускаем демо-режим. После успешного запуска, закрываем игру.
|
||||
Скачиваем необходимые для запуска [библиотеки](https://mega.nz/#F!hUNg0Y6I!93cYw1NZg4MUWUHaVrCO7w) для **вашей системы** и **версии игры**.
|
||||
|
||||
## 2. Клиент Minecraft
|
||||
По умолчанию скрипт настроен на запуск Minecraft из стандартной директории:
|
||||
|
28
make_libs.py
Executable file
28
make_libs.py
Executable file
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import json
|
||||
|
||||
__author__ = 'Alexander Popov'
|
||||
__version__ = '0.1.0'
|
||||
__license__ = 'Unlicense'
|
||||
|
||||
|
||||
def parse_libs():
|
||||
_ = []
|
||||
|
||||
with open('./version.json', 'r', encoding='utf-8') as f:
|
||||
file_data = json.loads(f.read())
|
||||
|
||||
for lib in file_data['libraries']:
|
||||
_.append(lib['downloads']['artifact']['path'])
|
||||
|
||||
return(_)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
libraries = parse_libs()
|
||||
|
||||
for lib in libraries:
|
||||
print('$MC_DIR/libraries/{0}'.format(lib), end=':')
|
||||
|
||||
print('$MC_DIR/versions/$GAME_VERSION/$GAME_VERSION.jar')
|
Loading…
Reference in New Issue
Block a user