Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from luuxis:master #1

Open
wants to merge 118 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
3d5cdf0
fix error permes
luuxis Aug 6, 2023
9ac59d9
Update index.js
luuxis Aug 9, 2023
44a5add
add support neo-forge
luuxis Aug 12, 2023
415a0c8
add support legacyfabric
luuxis Aug 12, 2023
ddfc121
hide prive info console (token ...)
luuxis Aug 12, 2023
b6e887e
publish 3.6.1
luuxis Aug 12, 2023
31899c3
Update index.js
luuxis Aug 12, 2023
aa93c7b
Update Launch.ts
luuxis Aug 12, 2023
0ddc5be
fix
luuxis Aug 17, 2023
5ef62ca
change path java
luuxis Aug 20, 2023
9962457
publish 3.6.2
luuxis Aug 22, 2023
1394daf
publish 3.6.2
luuxis Aug 22, 2023
d86d863
fix path files verify
luuxis Aug 31, 2023
339d757
publish 3.6.3
luuxis Aug 31, 2023
a2946ed
del test neoforge
luuxis Sep 5, 2023
1e9b540
add suport minecraft 1.0 > 1.18 arm
luuxis Sep 11, 2023
7582e03
pulish 3.6.4
luuxis Sep 11, 2023
fa8410e
test
luuxis Sep 13, 2023
3320283
add suport mac silicn
luuxis Sep 27, 2023
3c70484
fix error
luuxis Sep 29, 2023
eeaedf8
publish 3.7.0
luuxis Sep 29, 2023
68e2662
fix error 3.7.0
luuxis Oct 2, 2023
3635c58
publish 3.7.1 stable
luuxis Oct 2, 2023
670436e
fix remove file
luuxis Oct 3, 2023
c76be2f
fix arg
luuxis Oct 3, 2023
97088f5
publish 3.7.2
luuxis Oct 3, 2023
bf2697e
fix error
luuxis Oct 28, 2023
d7022cf
init commit
luuxis Nov 3, 2023
fae56da
test
luuxis Nov 3, 2023
2607122
add old forge versions
luuxis Nov 3, 2023
f5360ad
publish alpah test
luuxis Nov 3, 2023
a52b46a
Update index.js
luuxis Nov 3, 2023
f31dbf9
publish stable 3.8.1
luuxis Nov 4, 2023
7ec019b
test
luuxis Nov 18, 2023
dd77830
add windows ARM64
Luuxis-tuto Dec 30, 2023
505187c
add rootforge path
luuxis Jan 5, 2024
875b020
publish 3.8.2
luuxis Jan 5, 2024
2bb563c
fix start forge 1.20.3 > 1.20.4
luuxis Jan 5, 2024
68e55ba
Update Minecraft-Arguments.ts
luuxis Jan 5, 2024
913792f
fix
luuxis Jan 5, 2024
b3e7119
Refactor JavaDownloader to use modern JS features
luuxis Jan 17, 2024
8420276
test
luuxis Jan 17, 2024
e55549e
Add getJavaOther method for alternative Java retrieval
luuxis Jan 17, 2024
7b7d354
add type download
luuxis Jan 17, 2024
306e43a
fix error download
luuxis Jan 17, 2024
cf483d4
Update Minecraft-Java.ts
luuxis Jan 17, 2024
57aa160
Update index.js
luuxis Jan 17, 2024
e35bb2f
Create meta.zip
luuxis Jan 18, 2024
815b0a1
fix
luuxis Jan 23, 2024
a1b9cb3
test
luuxis Jan 23, 2024
cb76cd7
add natives linux fo ARM
luuxis Jan 23, 2024
8d7db40
.
luuxis Jan 23, 2024
194609b
test
luuxis Jan 23, 2024
e7ddd26
Update Minecraft-Loader.ts
luuxis Jan 23, 2024
6ac1a06
Update package-lock.json
luuxis Jan 23, 2024
23a725a
fix java
luuxis Jan 23, 2024
0d1e1d0
test
luuxis Jan 24, 2024
164b447
add support linux arm
luuxis Jan 28, 2024
0a6efcc
fix error (java.lang.IllegalStateException: Duplicate key)
luuxis Feb 12, 2024
93529e7
publish 3.8.3
luuxis Feb 14, 2024
8fe0978
add info accont microsoft
luuxis Feb 17, 2024
2711576
fix xbox game pass
luuxis Mar 27, 2024
a0e51e4
publish 3.9.0 stable
luuxis Mar 27, 2024
71ac670
fix error start game if xuid not found
luuxis May 4, 2024
1d551c1
add skin from AZauth
luuxis May 4, 2024
2a78090
publish 3.10.0
luuxis May 4, 2024
78e97e0
fix skin > skins
luuxis May 4, 2024
925a51d
fix skin azAuth API
luuxis May 9, 2024
ec0a5fa
fix skin
luuxis May 13, 2024
62f3f88
publish 3.10.3
luuxis May 13, 2024
efa48b8
fix
luuxis May 13, 2024
6cb8d7b
Update neoForge.ts
luuxis Jun 30, 2024
9e32063
Refactor: Utilize path.join for loaderPath construction
luuxis Jul 24, 2024
af2b4e2
fix dupli lib class path
luuxis Aug 15, 2024
1c7f5b1
publish 3.11.0
luuxis Aug 15, 2024
b13e33b
publish 3.11.1-beta.1
luuxis Oct 8, 2024
6075484
Refactor and optimize TypeScript code for improved efficiency and rea…
luuxis Oct 8, 2024
b21a31c
publish 1.11.1 stable
luuxis Oct 8, 2024
d664458
fix uuid error start game
luuxis Oct 8, 2024
806d93c
publish 3.11.2
luuxis Oct 8, 2024
111726e
add .github
luuxis Oct 14, 2024
5206317
Add `Launch` docs, export `launchOPTS`
xllifi Oct 20, 2024
5fbb49d
Fix slash error with AzAuth https://github.com/luuxis/minecraft-java-…
luuxis Oct 20, 2024
62f4c8d
fix redownload java if use adoptium
luuxis Oct 29, 2024
753a9f6
publish 3.11.3
luuxis Oct 29, 2024
4b69837
Update index.js
luuxis Nov 9, 2024
0e88f64
Optimize "other" Java lookup - use Adoptium API.
xllifi Oct 20, 2024
4989b36
update dep
luuxis Dec 24, 2024
f0a03ca
refactor: Convert patcher.ts to a typed TypeScript class
luuxis Feb 8, 2025
ffebc59
publish 3.11.4
luuxis Feb 8, 2025
e8c0413
refactor: restructure AZauth code and introduce AZauthUser interface
luuxis Feb 8, 2025
4f3a707
chore: update license header and code style
luuxis Feb 8, 2025
56bb708
chore: update license header and code style
luuxis Feb 8, 2025
f481b5d
chore: update license header and code style
luuxis Feb 8, 2025
9005601
refactor: reorganize MS auth flow and add typed interfaces
luuxis Feb 8, 2025
dc10973
refactor: unify code style and improve doc usage
luuxis Feb 8, 2025
af56820
chore: update license header
luuxis Feb 8, 2025
7e33711
refactor: refactor launching process and add TypeScript-style definit…
luuxis Feb 8, 2025
6c31efe
refactor: reorganize loader architecture and code style
luuxis Feb 8, 2025
db08a5e
refactor: improve doc comments and add typed interfaces
luuxis Feb 8, 2025
bb79a1e
refactor: restructure Forge installation logic and patch process
luuxis Feb 8, 2025
24254d0
refactor: unify code style and doc usage
luuxis Feb 8, 2025
4e628d2
refactor: enhance NeoForge installation and patch flow
luuxis Feb 8, 2025
e7a7496
refactor: unify code style and doc usage
luuxis Feb 8, 2025
cad5f99
refactor: reorganize patch logic and add TypeScript-style documentation
luuxis Feb 8, 2025
4608889
refactor: Minecraft: add typed definitions and improve doc strings
luuxis Feb 8, 2025
dd4859d
refactor: unify code style and enhance documentation
luuxis Feb 8, 2025
4b7d685
refactor: restructure bundle checks and file cleanup logic
luuxis Feb 8, 2025
bf8f57d
refactor: reorganize Java download and extraction workflow
luuxis Feb 8, 2025
ed011c4
refactor: unify code style and improve version fetch logic
luuxis Feb 8, 2025
41e6c83
refactor: enhance library download and natives extraction
luuxis Feb 8, 2025
b9b5057
refactor: unify loader usage and improve argument handling
luuxis Feb 8, 2025
9fc4ba5
refactor: unify code style and ARM logic
luuxis Feb 8, 2025
0758edf
docs: add license header and doc comment
luuxis Feb 8, 2025
e742c33
docs(: add license header and doc comment
luuxis Feb 8, 2025
a61fef5
refactor: unify code style and enhance concurrency logic
luuxis Feb 8, 2025
b82dc77
refactor: unify code style and doc usage
luuxis Feb 8, 2025
0b1a613
publish 4.0.0 alpha 1
luuxis Feb 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: ['luuxis']
71 changes: 71 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Signaler un bug
description: Vous avez rencontré un bug? Signalez-le ici
title: "[Bug] "
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Un grand merci d'avance pour votre aide. Néanmoins, nous avons besoin d'un certain nombre d'informations, pour nous aider.
- type: checkboxes
attributes:
label: "Liste des vérifications à faire avant de valider l'ouverture du signalement de bug"
description: Assurez que vous avez complété ce qui suit, dans le cas contraire, votre rapport peut être refusé
options:
- label: J'ai réussi à reproduire le bug sur le Selvania Launcher (sans mes modifications)
required: true
- label: Mon code respecte la licence Creative Commons Zero v1.0 Universal
required: true
- label: Mon code respecte les conditions d'utilisation du Selvania Launcher
required: true
- label: J'arrive à reproduire le bug sur la dernière version du Selvania Launcher
required: true
- type: dropdown
attributes:
label: Système d'exploitation
options:
- Windows
- macOS
- Linux (Basé sur Debian/Ubuntu)
- Linux (Autres)
validations:
required: true
- type: input
attributes:
label: Version du système d'exploitation
placeholder: "Exemple: Windows 11 Professionnel 21H2 Build 22000.739"
validations:
required: true
- type: input
attributes:
label: Hash du commit sur lequel le bug est rencontré
placeholder: 84d7881b67ecf6088205eca6723bfb19bf2a5f0d
- type: textarea
attributes:
label: Comportement attendu
description: Une description de ce qui devrait se passer
placeholder: Le launcher devrait...
validations:
required: true
- type: textarea
attributes:
label: Comportement actuel
description: Une description de ce qui se passe avec le bug
validations:
required: true
- type: textarea
attributes:
label: Instructions pour reproduire le but
placeholder: |
1. Ouvrir le launcher
2. Aller dans le menu xyz
3. Cliquer sur abc
4. Observer
validations:
required: true
- type: textarea
attributes:
label: Notes additionnelles
placeholder: Détails supplémentaires concernant le bug, tout ce qui pourrait être utile
validations:
required: false
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Nous rejoindre sur Discord, pour toutes questions ou demandes
url: http://discord.luuxis.fr
about: Veuillez ne pas ouvrir d'issue autre que pour signaler des bugs
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
node_modules
build
files
.Minecraft
test/*.json
test/Minecraft
test/*.json*
webfiles/instances/*
.DS_Store
60 changes: 39 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
NodeJS Module for Minecraft launcher
<br>
[![Number](https://img.shields.io/npm/v/minecraft-java-core?style=social&logo=appveyor)](https://npmjs.com/minecraft-java-core)
<br>
[![Install](https://img.shields.io/npm/dm/minecraft-java-core.svg?style=social&logo=appveyor)](https://npmjs.com/minecraft-java-core)
<br>
[![size](https://img.shields.io/github/languages/code-size/luuxis/minecraft-java-core?style=social&logo=appveyor)](https://npmjs.com/minecraft-java-core)
<br>
[![sizeinstall](https://badgen.net/packagephobia/install/minecraft-java-core)](https://npmjs.com/minecraft-java-core)

<p align="center">
<a href="http://discord.luuxis.fr">
<img src="https://invidget.switchblade.xyz/e9q7Yr2cuQ">
</a>
</p>

---
## Avantages :dizzy:
- Auto check & downloading compatible java version
Expand Down Expand Up @@ -45,35 +48,54 @@ const launch = new Launch();

async function main() {
let opt = {
url: 'https://launcher.luuxis.fr/files/?instance=PokeMoonX',
authenticator: await Mojang.login('Luuxis'),
timeout: 10000,
path: './.Minecraft test',
version: '1.19.3',
path: './Minecraft',
instance: 'PokeMoonX',
version: '1.20.4',
detached: false,
downloadFileMultiple: 100,
intelEnabledMac: true,
downloadFileMultiple: 30,

loader: {
path: '',
type: 'forge',
build: 'latest',
enable: true
},

verify: false,
ignored: ['loader', 'options.txt'],
args: [],

javaPath: null,
java: true,
verify: true,
ignored: [
'config',
'essential',
'logs',
'resourcepacks',
'saves',
'screenshots',
'shaderpacks',
'W-OVERFLOW',
'options.txt',
'optionsof.txt'
],

JVM_ARGS: [],
GAME_ARGS: [],

java: {
path: null,
version: null,
type: 'jre',
},

screen: {
width: null,
height: null,
fullscreen: null,
width: 1500,
height: 900
},

memory: {
min: '2G',
max: '4G'
min: '4G',
max: '6G'
}
}

Expand Down Expand Up @@ -121,7 +143,3 @@ async function main() {

main()
```
---
<br>

[<p align="center"><img src="https://discordapp.com/api/guilds/819729377650278420/embed.png?style=banner4" alt="discord">](https://discord.gg/e9q7Yr2cuQ)
96 changes: 96 additions & 0 deletions assets/LWJGL/aarch/2.9.4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"libraries": [
{
"downloads": {
"classifiers": {
"natives-linux": {
"path": "net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-linux.jar",
"sha1": "f3c455b71c5146acb5f8a9513247fc06db182fd5",
"size": 4521,
"url": "https://github.com/theofficialgman/lwjgl3-binaries-arm32/raw/lwjgl-2.9.4/jinput-platform-2.0.5-natives-linux.jar"
}
}
},
"extract": {
"exclude": [
"META-INF/"
]
},
"name": "net.java.jinput:jinput-platform:2.0.5",
"natives": {
"linux": "natives-linux"
}
},
{
"downloads": {
"artifact": {
"path": "net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar",
"sha1": "c2e322bbec2345f1b93b96000f93e3a4c3b2bf96",
"size": 216945,
"url": "https://github.com/theofficialgman/lwjgl3-binaries-arm32/raw/lwjgl-2.9.4/jinput-2.0.5.jar"
}
},
"name": "net.java.jinput:jinput:2.0.5"
},
{
"downloads": {
"artifact": {
"path": "net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar",
"sha1": "e12fe1fda814bd348c1579329c86943d2cd3c6a6",
"size": 7508,
"url": "https://libraries.minecraft.net/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar"
}
},
"name": "net.java.jutils:jutils:1.0.0"
},
{
"downloads": {
"artifact": {
"path": "org/lwjgl/lwjgl/lwjgl-platform/2.9.4-nightly-20150209/lwjgl-platform-2.9.4-nightly-20150209.jar",
"sha1": "b04f3ee8f5e43fa3b162981b50bb72fe1acabb33",
"size": 22,
"url": "https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl-platform/2.9.4-nightly-20150209/lwjgl-platform-2.9.4-nightly-20150209.jar"
},
"classifiers": {
"natives-linux": {
"path": "org/lwjgl/lwjgl/lwjgl-platform/2.9.4-nightly-20150209/lwjgl-platform-2.9.4-nightly-20150209-natives-linux.jar",
"sha1": "fa483e540a9a753a5ffbb23dcf7879a5bf752611",
"size": 475177,
"url": "https://github.com/theofficialgman/lwjgl3-binaries-arm32/raw/lwjgl-2.9.4/lwjgl-platform-2.9.4-nightly-20150209-natives-linux.jar"
}
}
},
"extract": {
"exclude": [
"META-INF/"
]
},
"name": "org.lwjgl.lwjgl:lwjgl-platform:2.9.4-nightly-20150209",
"natives": {
"linux": "natives-linux"
}
},
{
"downloads": {
"artifact": {
"path": "org/lwjgl/lwjgl/lwjgl/2.9.4-nightly-20150209/lwjgl-2.9.4-nightly-20150209.jar",
"sha1": "697517568c68e78ae0b4544145af031c81082dfe",
"size": 1047168,
"url": "https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl/2.9.4-nightly-20150209/lwjgl-2.9.4-nightly-20150209.jar"
}
},
"name": "org.lwjgl.lwjgl:lwjgl:2.9.4-nightly-20150209"
},
{
"downloads": {
"artifact": {
"path": "org/lwjgl/lwjgl/lwjgl_util/2.9.4-nightly-20150209/lwjgl_util-2.9.4-nightly-20150209.jar",
"sha1": "d51a7c040a721d13efdfbd34f8b257b2df882ad0",
"size": 173887,
"url": "https://github.com/theofficialgman/lwjgl3-binaries-arm32/raw/lwjgl-2.9.4/lwjgl_util-2.9.4-nightly-20150209.jar"
}
},
"name": "org.lwjgl.lwjgl:lwjgl_util:2.9.4-nightly-20150209"
}
]
}
Loading