Compare commits
34 Commits
Author | SHA1 | Date | |
---|---|---|---|
8b62106587
|
|||
076bf84410
|
|||
6136fee405
|
|||
8ebd834e73
|
|||
a4fc72dc52 | |||
d94d0f409c | |||
6323778c5f | |||
08181a63a1
|
|||
e380df8257
|
|||
2a6df12ee6
|
|||
8fd4745572
|
|||
2591b2e029
|
|||
f1aa69b2bd
|
|||
a98834de6c | |||
fe6034506f | |||
62e283a406 | |||
744feb6799 | |||
d0d3a7a90f | |||
42e948c605 | |||
24418c83fa | |||
8a0bc87c1a | |||
881b12e57b | |||
2e5327c61e | |||
c668af53a4 | |||
23ba39313f | |||
c2ec0b63e4 | |||
7ad66a0b50 | |||
4c1ed93639 | |||
3222eff7c6 | |||
596c93fb2d | |||
65d4d25ccc | |||
a47eb47b24 | |||
5a806555d5 | |||
6455539b4b |
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@ -1 +0,0 @@
|
||||
ko_fi: iiiypuk
|
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,6 +1 @@
|
||||
env
|
||||
tools/version.json
|
||||
tools/libs.txt
|
||||
for_build/mc_start.*
|
||||
for_build/*.zip
|
||||
Minecraft.jar
|
||||
for_build/
|
||||
|
14
CHANGELOG.md
14
CHANGELOG.md
@ -1,10 +1,10 @@
|
||||
TODO
|
||||
====
|
||||
* Сделать цветной выхлоп
|
||||
* Реализовать параметр вывода в файл [b38e3ca]
|
||||
* Реализовать копирование в буфер обмена, при выхлопе в терминал
|
||||
* Исправить автоматический выхлоп для Windows, либо сделать оповещение об этом [1ecc7be]
|
||||
## 2021-07-22
|
||||
+ move `./docs/` to `ph-pages` branch.
|
||||
|
||||
2020/10/10 # 1 ------------------
|
||||
## 2021-07-21
|
||||
+ update launcher to 1.17.1
|
||||
> java 16 to run need
|
||||
|
||||
## 2020-10-10
|
||||
+ add return notification for generate libraries list.
|
||||
+ add output parameter for make libs script.
|
||||
|
@ -1,26 +0,0 @@
|
||||
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. 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:
|
||||
for Windows is `%APPDATA%\.minecraft`.
|
||||
for Linux is `~/.minecraft`.
|
||||
|
||||
Extract launcher files in game directory, if necessary, you can create a shortcut on the desktop.
|
||||
Start. ENJOY!
|
||||
|
||||
## 3. Configuration
|
||||
This launcher configurable. Configuration made by changing the parameters in the source code of the launcher.
|
||||
|
||||
**Parameters list and values are presented below:**
|
||||
|
||||
+ `%MC_DIR%` - directory with Minecraft client.
|
||||
+ `%GAME_DIR%` - directory with user files. Resource packs, saves, screenshots and etc.
|
||||
+ `%PLAYER%` - player name.
|
||||
+ `%WINDOW_W%` - window width in window mode.
|
||||
+ `%WINDOW_H%` - height width in window mode.
|
||||
+ `%RAM%` - the amount of RAM that the JVM will use. The default is 2GB.
|
@ -1,26 +0,0 @@
|
||||
Русская справка
|
||||
===============
|
||||
## 1. Установка
|
||||
Скачиваем [актуальную](https://github.com/iiiypuk/minecraft-launcher/releases/latest) версию лаунчера.
|
||||
Далее [скачиваем](https://www.minecraft.net/download) Minecraft и запускаем демо-режим. После успешного запуска, закрываем игру.
|
||||
Скачиваем необходимые для запуска [библиотеки](https://mega.nz/#F!hUNg0Y6I!93cYw1NZg4MUWUHaVrCO7w) для **вашей системы** и **версии игры**.
|
||||
|
||||
## 2. Клиент Minecraft
|
||||
По умолчанию скрипт настроен на запуск Minecraft из стандартной директории:
|
||||
для Windows это `%APPDATA%\.minecraft`.
|
||||
для Linux это `~/.minecraft`.
|
||||
|
||||
Распаковываем файлы лаунчера в директорию с игрой, при необходимости можно создать ярлык на рабочем столе.
|
||||
Запускаем. ENJOY!
|
||||
|
||||
## 3. Настройка
|
||||
Этот лаунчер можно настроить. Настройка производится путём изменения параметров в исходном коде лаунчера.
|
||||
|
||||
**Список параметров и их значений представлены ниже:**
|
||||
|
||||
+ `%MC_DIR%` - директория с клиентом Minecraft.
|
||||
+ `%GAME_DIR%` - директория с файлами пользователя. Ресурс-паки, сохранения, скриншоты и др.
|
||||
+ `%PLAYER%` - имя игрока.
|
||||
+ `%WINDOW_W%` - ширина окна в оконном режиме.
|
||||
+ `%WINDOW_H%` - высота окна в оконном режиме.
|
||||
+ `%RAM%` - количество оперативной памяти, которое JVM будет использовать. По умолчанию 2GB.
|
23
README.md
23
README.md
@ -1,14 +1,15 @@
|
||||
Minecraft Java Edition Batch Launcher
|
||||
=====================================
|
||||
[](https://github.com/iiiypuk/minecraft-launcher/releases/latest) [](https://ko-fi.com/iiiypuk)
|
||||
# Minecraft [Java Edition] Batch Launcher
|
||||
|
||||
### Features:
|
||||
* Open source. Just launch the game, nothing more
|
||||
* No need for extra deps
|
||||
* Change player name
|
||||
**Features:**
|
||||
|
||||
### Instaling ∙ ∙ Установка:
|
||||
+ [English help](https://github.com/IIIypuk/minecraft-launcher/blob/master/INSTALLATION_EN.md)
|
||||
+ [Русская справка](https://github.com/IIIypuk/minecraft-launcher/blob/master/INSTALLATION_RU.md)
|
||||
* 📋 Open source. Just launch the game, nothing more
|
||||
* 🏷️ Change player name
|
||||
* 🧰 No need for extra deps
|
||||
* ⚙️ No configuration required
|
||||
|
||||
## Minecraft Natives
|
||||
The natives catalog is located on [Mega.nz](https://mega.nz/#F!hUNg0Y6I!93cYw1NZg4MUWUHaVrCO7w).
|
||||
|
||||
## ChangeLog
|
||||
See [CHANGELOG.md](CHANGELOG.md).
|
||||
|
||||
 
|
||||
|
@ -1 +0,0 @@
|
||||
theme: jekyll-theme-modernist
|
@ -1,17 +0,0 @@
|
||||
## Minecraft Java Edition Batch Launcher
|
||||
[](https://github.com/iiiypuk/minecraft-launcher/releases/latest)  
|
||||
|
||||
### Features:
|
||||
* Open source. Just launch the game, nothing more
|
||||
* No need for extra deps
|
||||
* Change player name
|
||||
|
||||
### Instaling / Установка:
|
||||
[English help](https://github.com/IIIypuk/minecraft-launcher/blob/master/INSTALLATION_EN.md)
|
||||
[Русская справка](https://github.com/IIIypuk/minecraft-launcher/blob/master/INSTALLATION_RU.md)
|
||||
|
||||
|
||||
|
||||
### Support or Contact
|
||||
|
||||
Alexander Popov: [Telegram](https://telegram.me/slexbc)
|
@ -1,4 +0,0 @@
|
||||
Natives catalog:
|
||||
https://mega.nz/#F!hUNg0Y6I!93cYw1NZg4MUWUHaVrCO7w
|
||||
|
||||
Natives for `1.16.3` identical for `1.16.4`.
|
@ -1,6 +0,0 @@
|
||||
Minecraft Natives
|
||||
=========================
|
||||
|
||||
[mega.nz](https://mega.nz/#F!hUNg0Y6I!93cYw1NZg4MUWUHaVrCO7w)
|
||||
|
||||
Natives for `1.16.3` identical for `1.16.4`.
|
@ -1 +0,0 @@
|
||||
click==7.1.2
|
@ -1 +0,0 @@
|
||||
* `make_libs_list.py` - parse `version.json` file and return libs
|
35
tools/make_libs_list.py → tools/make_libs.py
Executable file → Normal file
35
tools/make_libs_list.py → tools/make_libs.py
Executable file → Normal file
@ -1,19 +1,21 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
## Requirements PIP: click
|
||||
|
||||
"""Parse Minecraft version.json file and return using libs"""
|
||||
|
||||
__version__ = "1.0.5"
|
||||
|
||||
import sys
|
||||
import json
|
||||
import click
|
||||
|
||||
__author__ = "Alexander Popov"
|
||||
__version__ = "1.0.2"
|
||||
__license__ = "Unlicense"
|
||||
|
||||
|
||||
@click.command()
|
||||
@click.option("--platform", default=sys.platform, help="Output platform (win32, linux, darwin).")
|
||||
@click.option("--output", default="tty", help="Output option (tty, txt).")
|
||||
@click.option("-p", "--platform", default=sys.platform, help="Output platform (win32, linux, darwin).")
|
||||
@click.option("-o", "--output", default="tty", help="Output option (tty, txt).")
|
||||
def make_output(platform, output):
|
||||
""" Return libraries list """
|
||||
"""Return libraries list"""
|
||||
|
||||
libraries = parse_libs()
|
||||
|
||||
@ -38,7 +40,7 @@ def make_output(platform, output):
|
||||
|
||||
if platform == "win32":
|
||||
print("\nWindows generate libraries list complete!")
|
||||
elif platform == "linux" or platform == "darwin":
|
||||
elif platform in ("linux", "darwin"):
|
||||
print("\nUnix generate libraries list complete!")
|
||||
elif output == "txt":
|
||||
with open("./libs.txt", "w", encoding="utf-8") as f:
|
||||
@ -46,23 +48,28 @@ def make_output(platform, output):
|
||||
|
||||
if platform == "win32":
|
||||
print("\nWindows generate libraries list complete!\n" "See libs.txt file.")
|
||||
elif platform == "linux" or platform == "darwin":
|
||||
elif platform in ("linux", "darwin"):
|
||||
print("\nUnix generate libraries list complete!\n" "See libs.txt file.")
|
||||
|
||||
|
||||
def parse_libs():
|
||||
""" Make libraries list from version.json file """
|
||||
"""Make libraries list from version.json file"""
|
||||
|
||||
_ = []
|
||||
|
||||
with open("./version.json", "r", encoding="utf-8") as f:
|
||||
file_data = json.loads(f.read())
|
||||
try:
|
||||
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"])
|
||||
for lib in file_data["libraries"]:
|
||||
_.append(lib["downloads"]["artifact"]["path"])
|
||||
except FileNotFoundError:
|
||||
print("ERROR: File version.json not found.")
|
||||
sys.exit(-1)
|
||||
|
||||
return _
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# pylint: disable=no-value-for-parameter
|
||||
make_output()
|
26
unix/mc_start.sh
Normal file → Executable file
26
unix/mc_start.sh
Normal file → Executable file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user