add script for make libraries list

This commit is contained in:
Alexander Popov 2020-07-02 22:46:42 +03:00
parent 170be4769b
commit bc16ba4342
4 changed files with 35 additions and 4 deletions

3
.gitignore vendored
View File

@ -0,0 +1,3 @@
env
version.json
libs.txt

View File

@ -2,8 +2,8 @@ English help
============ ============
## 1. Installing ## 1. Installing
Download of [actually](https://github.com/iiiypuk/minecraft-launcher/releases/latest) version launcher. 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. 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 of **1.15.2**. Download required [libraries](https://mega.nz/#F!hUNg0Y6I!93cYw1NZg4MUWUHaVrCO7w) for run game for **your system** and game **version**.
## 2. Client Minecraft ## 2. Client Minecraft
By default script configured for run Minecraft from default directory: By default script configured for run Minecraft from default directory:

View File

@ -2,8 +2,8 @@
=============== ===============
## 1. Установка ## 1. Установка
Скачиваем [актуальную](https://github.com/iiiypuk/minecraft-launcher/releases/latest) версию лаунчера. Скачиваем [актуальную](https://github.com/iiiypuk/minecraft-launcher/releases/latest) версию лаунчера.
Далее [скачиваем](https://www.minecraft.net/download) Minecraft и запускаем демо-режим версии **1.15.2**. После успешного запуска, закрываем игру. Далее [скачиваем](https://www.minecraft.net/download) Minecraft и запускаем демо-режим. После успешного запуска, закрываем игру.
Скачиваем необходимые для запуска [библиотеки](https://mega.nz/#F!hUNg0Y6I!93cYw1NZg4MUWUHaVrCO7w) для **вашей системы** и версии игры **1.15.2**. Скачиваем необходимые для запуска [библиотеки](https://mega.nz/#F!hUNg0Y6I!93cYw1NZg4MUWUHaVrCO7w) для **вашей системы** и **версии игры**.
## 2. Клиент Minecraft ## 2. Клиент Minecraft
По умолчанию скрипт настроен на запуск Minecraft из стандартной директории: По умолчанию скрипт настроен на запуск Minecraft из стандартной директории:

28
make_libs.py Executable file
View 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')