77 Commits
1.12.2 ... 1.19

Author SHA1 Message Date
8b62106587 bump 1.19 version 2022-06-10 22:19:18 +03:00
076bf84410 now and always not need manual generate lib's list 2022-06-03 15:43:03 +03:00
6136fee405 tool4make jar's list move to project... again 2022-06-03 15:40:55 +03:00
8ebd834e73 1.18.2 2022-05-16 19:35:28 +03:00
a4fc72dc52 Merge pull request #21 from Gauley123/patch-1
Used `/d` parameter for change directory with drive.
2021-11-07 02:17:28 +03:00
d94d0f409c Update mc_start.bat
changes it to use cd /d instead
2021-11-04 18:55:27 +00:00
6323778c5f xD 2021-10-29 03:37:55 +03:00
08181a63a1 update readme 2021-07-22 01:44:49 +03:00
e380df8257 make gh-pages 2021-07-22 01:36:00 +03:00
2a6df12ee6 cleaning 2021-07-22 01:29:43 +03:00
8fd4745572 fix readme 2021-07-22 01:10:54 +03:00
2591b2e029 up to 1.17.1 2021-07-21 04:39:18 +03:00
f1aa69b2bd add binary builds link 2021-03-31 01:29:35 +03:00
a98834de6c add site statictics 2021-02-16 20:24:02 +03:00
fe6034506f add todo list 2021-02-15 18:27:20 +03:00
62e283a406 add portable guide 2021-02-14 08:18:28 +03:00
744feb6799 Merge branch 'master' of https://github.com/iiiypuk/minecraft-launcher 2021-02-14 05:46:51 +03:00
d0d3a7a90f make docs by docsify 2021-02-14 05:46:42 +03:00
42e948c605 fix main page 2021-02-14 05:38:06 +03:00
24418c83fa fix links 2021-02-14 05:35:10 +03:00
8a0bc87c1a fix path 2021-02-14 05:30:59 +03:00
881b12e57b fix docs 2021-02-14 05:28:41 +03:00
2e5327c61e fix basePath 2021-02-14 05:23:41 +03:00
c668af53a4 remove .nojekyll 2021-02-14 05:22:45 +03:00
23ba39313f add docs by docsify 2021-02-14 05:20:17 +03:00
c2ec0b63e4 remove trash folder 2021-02-10 22:53:24 +03:00
7ad66a0b50 remove github-docs 2021-02-10 22:50:47 +03:00
4c1ed93639 remove *.jar libs string in the code
for small size repository files
2021-02-10 22:48:03 +03:00
3222eff7c6 add LICENSE badge 2021-02-10 22:43:11 +03:00
596c93fb2d add player name user input
and add shebang
2021-02-10 22:37:47 +03:00
65d4d25ccc update natives readme 2021-02-07 18:05:36 +03:00
a47eb47b24 update to 1.16.5
change `authlib` version
2021-02-07 17:56:00 +03:00
5a806555d5 add emoji 📝
and add "No need configuration" label to README
2021-02-07 17:21:22 +03:00
6455539b4b add tg contact link 2020-11-22 11:48:49 +03:00
ba75ec33d0 change dir name 2020-11-22 04:17:40 +03:00
4a6874915b fix unix version variable 2020-11-22 04:16:34 +03:00
0657b7c0a6 update to 1.16.4 2020-11-22 04:02:47 +03:00
7ce2d70c8b fix complete message
fix complete message for unix system
2020-11-22 03:38:06 +03:00
e1efb6e0d2 OS lib separate output fix 2020-11-22 03:35:27 +03:00
219bc5ba5c auto select output platform 2020-10-17 00:26:41 +03:00
af9dfb6f90 remove binary files 2020-10-15 02:18:58 +03:00
52195f81a3 fix line end markup 2020-10-15 02:15:36 +03:00
e37a9fe8d4 Merge pull request #13 from LudovicTOURMAN/patch-1
Fix shell variables
2020-10-15 02:01:42 +03:00
0667b44461 Fix shell variables
Fix shell variables that where style "windows styled"
2020-10-14 23:17:18 +02:00
606eedd664 update changelog 2020-10-10 03:10:02 +03:00
b38e3ca913 add new parameter for output 2020-10-10 03:04:51 +03:00
4666891e42 add donate button to readme 2020-10-10 02:47:12 +03:00
1ecc7be9ce add notify for generate libs list 2020-10-10 02:29:27 +03:00
a9cfb980ae move tools to dir 2020-10-10 02:23:13 +03:00
468c01196b add TODO 2020-10-09 03:41:42 +03:00
4de323f10f update linux version to 1.16.3 2020-10-09 03:31:34 +03:00
cce2a595a9 Create FUNDING.yml 2020-10-05 03:30:10 +03:00
713c80e6ef use black for code 2020-10-05 03:19:23 +03:00
a9a64937fe add command param 2020-10-05 03:14:05 +03:00
13f5892bdf Update index.md 2020-10-05 02:11:28 +03:00
4bb4093619 Update index.md 2020-10-05 02:08:09 +03:00
26551e4547 Set theme jekyll-theme-modernist 2020-10-05 02:01:44 +03:00
6811b8b489 update windows version to 1.16.3 2020-09-26 00:54:55 +03:00
077fe2a5a0 add doc to module file 2020-07-02 22:52:36 +03:00
24d49165f7 update linux version to 1.16.1 2020-07-02 22:47:24 +03:00
bc16ba4342 add script for make libraries list 2020-07-02 22:46:42 +03:00
170be4769b add download button 2020-06-12 18:18:20 +03:00
5090e87a42 update windows version to 1.15.2 2020-05-08 19:26:57 +03:00
be5ee732bc add java ram args variable 2020-05-08 19:01:57 +03:00
092d4eef40 add badges 2020-05-07 23:34:43 +03:00
7763251148 Make script more readable
thx @BoQsc
2020-05-07 23:16:49 +03:00
a841dff101 edited readme of project 2020-05-07 22:37:56 +03:00
8898d4629e add new help 2020-05-07 22:37:24 +03:00
7365db7520 fixing
add window title for linux version
fixing windows version script variables
2020-05-07 21:57:15 +03:00
7ce77aba19 name of variables fixes 2020-05-07 21:43:02 +03:00
bea2b94a22 :trollface: 2020-05-06 20:34:01 +03:00
de111ebc48 update linux version to 1.15.2 2020-05-06 20:28:05 +03:00
d86d1d242d Merge pull request #11 from VanGamer64/patch-1
Added a username setter.
2020-02-03 02:16:00 +03:00
f1bc1c5220 Added a username setter.
added so your username isn't always Steve.
2020-01-31 15:59:58 -08:00
1cfd9e2d3f 1.14.3 ready 2019-06-30 05:02:03 +03:00
c70b05aff6 🗺 1.14.1 ready 2019-05-18 00:22:23 +03:00
48be1ab8cb Update to 1.14.1 2019-05-18 00:14:43 +03:00
8 changed files with 177 additions and 97 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
for_build/

10
CHANGELOG.md Normal file
View File

@ -0,0 +1,10 @@
## 2021-07-22
+ move `./docs/` to `ph-pages` branch.
## 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.

View File

@ -1,53 +1,15 @@
Minecraft Batch Launcher
========================
### English help ###
## 1. Installation ##
Get to the [launcher page](https://github.com/IIIypuk/minecraft-launcher/blob/master/mc_start.bat). Click with right mouse button on **Raw** then click on **Save as...** and save file to your desired location.
## 2. Minecraft Client ##
By default, script will run Minecraft from the default directory `%APPDATA%\.minecraft`.
If you don't have a client, download [launcher](https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar), log in with Demo account and download Minecraft client.
After this, you may close official launcher and enjoy playing full version of Minecraft.
## 3. Setting up ##
This launcher can be customized by editing parameters in source file.
Use right mouse button to open a context menu, then click **edit**.
**List of parameters and values:**
+ `%MC_DIR%` - Minecraft client directory. By default it's `%APPDATA%\.minecraft`.
+ `%GAME_DIR%` - user game files. Resourcepacks, saves, screenshots, etc.
+ `%ASSETS_DIR%` - game libraries directory. Don't modify anything there, unless you know what are you doing.
+ `%NATIVES_DIR%` - native game libraries directory, which are used to launch game on Windows.
[Download](https://github.com/IIIypuk/minecraft-launcher/raw/master/natives/1.12.2.zip) and unpack this to the `versions\`, which is located nearby to the Minecraft client.
+ `%PLAYER%` - player name (shown above the head), by default it's **Steve**.
+ `%WIDTH%` - window width.
+ `%HEIGHT%` - window height.
+ `%RAM%` - amount of RAM (heap size) used by the JVM. **512MB** by default. If your PC has more than **4GB** of RAM, you can surely set it to `-Xmx2G`.
### Русская справка ###
## 1. Установка ##
Перейдите на [страницу лаунчера](https://github.com/IIIypuk/minecraft-launcher/blob/master/mc_start.bat). Правой кнопкой мыши нажмите на **Raw** и выберите пункт **Сохранить как...** и сохраните файл в удобное для Вас место.
## 2. Клиент Minecraft ##
По умолчанию скрипт настроен на запуск Minecraft из стандартной директории `%APPDATA%\.minecraft`.
Если у Вас нет клиента Minecraft, скачайте с официального сайта [лаунчер](https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar), зайдите под Demo учётной записью и скачайте клиент Minecraft.
После этого можно закрыть официальный лаунчер, запустить скачанный лаунчер и наслаждаться игрой в полную версию.
## 3. Настройка ##
Этот лаунчер можно настроить. Настройка производится путём изменения параметров в исходном коде лаунчера.
Для этого нажмите правой кнопкой мыши по файлу лаунчера и выберите пункт **Изменить**.
**Список параметров и их значений представлены ниже:**
+ `%MC_DIR%` - директория с клиентом Minecraft. По умолчанию `%APPDATA%\.minecraft`.
+ `%GAME_DIR%` - директория с файлами пользователя. Ресурс-паки, сохранения, скриншоты и др.
+ `%ASSETS_DIR%` - директория с библиотеками. Изменять только если Вы понимаете что желаете.
+ `%NATIVES_DIR%` - директория с библиотеками, которые требуеются для запуск игры под Windows.
[Скачиваем](https://github.com/IIIypuk/minecraft-launcher/raw/master/natives/1.12.2.zip) их и распаковываем в директорию `versions\`, которая находится в директории с клиентом Minecraft.
+ `%PLAYER%` - имя игрока. По умолчанию **Steve**.
+ `%WIDTH%` - ширина окна в оконном режиме.
+ `%HEIGHT%` - высота окна в оконном режиме.
+ `%RAM%` - количество оперативной памяти, которое JVM будет использовать. По умолчанию **512MB**. Если у Вас на компьютере оперативной памяти больше **4GB**, то можете смело устанавливать значение `-Xmx2G`.
# Minecraft [Java Edition] Batch Launcher
**Features:**
* 📋 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).

View File

@ -1,28 +0,0 @@
# A minecraft root directory
MC_DIR=~/.minecraft
# Game location
GAME_DIR=$MC_DIR/profile
# Assets location
ASSETS_DIR=$MC_DIR/assets
# Version to use
VERSION=1.11.2
# Native libs location
NATIVES_DIR=$MC_DIR/versions/$VERSION/$VERSION-natives
# Player name
PLAYER=Steve
# Window properties
WIDTH=800
HEIGHT=640
# JVM args
JVM_ARGS="-Xmx1G -Xms512M"
cd $MC_DIR
java $JVM_ARGS -Djava.library.path=$NATIVES_DIR -cp $MC_DIR/libraries/com/mojang/netty/1.6/netty-1.6.jar;$MC_DIR/libraries/oshi-project/oshi-core/1.1/oshi-core-1.1.jar;$MC_DIR/libraries/net/java/dev/jna/jna/3.4.0/jna-3.4.0.jar;$MC_DIR/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar;$MC_DIR/libraries/com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.jar;$MC_DIR/libraries/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar;$MC_DIR/libraries/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar;$MC_DIR/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar;$MC_DIR/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar;$MC_DIR/libraries/com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar;$MC_DIR/libraries/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar;$MC_DIR/libraries/io/netty/netty-all/4.0.23.Final/netty-all-4.0.23.Final.jar;$MC_DIR/libraries/com/google/guava/guava/17.0/guava-17.0.jar;$MC_DIR/libraries/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar;$MC_DIR/libraries/commons-io/commons-io/2.4/commons-io-2.4.jar;$MC_DIR/libraries/commons-codec/commons-codec/1.9/commons-codec-1.9.jar;$MC_DIR/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar;$MC_DIR/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar;$MC_DIR/libraries/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar;$MC_DIR/libraries/com/mojang/authlib/1.5.24/authlib-1.5.24.jar;$MC_DIR/libraries/com/mojang/realms/1.10.8/realms-1.10.8.jar;$MC_DIR/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar;$MC_DIR/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar;$MC_DIR/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar;$MC_DIR/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar;$MC_DIR/libraries/it/unimi/dsi/fastutil/7.0.12_mojang/fastutil-7.0.12_mojang.jar;$MC_DIR/libraries/org/apache/logging/log4j/log4j-api/2.0-beta9/log4j-api-2.0-beta9.jar;$MC_DIR/libraries/org/apache/logging/log4j/log4j-core/2.0-beta9/log4j-core-2.0-beta9.jar;$MC_DIR/libraries/org/lwjgl/lwjgl/lwjgl/2.9.4-nightly-20150209/lwjgl-2.9.4-nightly-20150209.jar;$MC_DIR/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.4-nightly-20150209/lwjgl_util-2.9.4-nightly-20150209.jar;$MC_DIR/versions/$VERSION/$VERSION.jar net.minecraft.client.main.Main --username $PLAYER --version $VERSION --accessToken 0 --userProperties {} --gameDir $GAME_DIR --assetsDir $ASSETS_DIR --assetIndex $ASSETS_INDEX --width $WIDTH --height $HEIGHT

Binary file not shown.

75
tools/make_libs.py Normal file
View File

@ -0,0 +1,75 @@
#!/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
@click.command()
@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"""
libraries = parse_libs()
# OS libs separate
_ = {"win32": ";", "linux": ":", "darwin": ":"}
out_lib = str()
# Generate libraries list
for lib in libraries:
out_lib = out_lib + "$MC_DIR/libraries/{0}".format(lib) + _[platform]
out_lib = out_lib + "$MC_DIR/versions/$GAME_VERSION/$GAME_VERSION.jar"
# Replace for OS shell variable symbol
if platform == "win32":
out_lib = out_lib.replace("$MC_DIR", "%MC_DIR%")
out_lib = out_lib.replace("$GAME_VERSION", "%GAME_VERSION%")
if output == "tty":
click.echo(out_lib)
if platform == "win32":
print("\nWindows generate libraries list complete!")
elif platform in ("linux", "darwin"):
print("\nUnix generate libraries list complete!")
elif output == "txt":
with open("./libs.txt", "w", encoding="utf-8") as f:
f.write(out_lib)
if platform == "win32":
print("\nWindows generate libraries list complete!\n" "See libs.txt file.")
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"""
_ = []
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"])
except FileNotFoundError:
print("ERROR: File version.json not found.")
sys.exit(-1)
return _
if __name__ == "__main__":
# pylint: disable=no-value-for-parameter
make_output()

48
unix/mc_start.sh Executable file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long