-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
67 lines (52 loc) · 2.39 KB
/
Copy pathinstall.bat
File metadata and controls
67 lines (52 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@echo off
setlocal enabledelayedexpansion
java --version > nul 2>&1
if errorlevel 1 goto ERROR
goto FABRIC
:ERROR
echo "[!] Java non installé sur la machine : installation de JDK 25"
echo "[!] Tentative d'installation de JAVA"
winget install --exact --id Oracle.JDK.25
echo "[!] Installation réussi. Tentative de configuration"
set "JAVA_HOME_TEMP=C:\Program Files\Java\jdk-25"
set "PATH=!JAVA_HOME_TEMP!\bin;%PATH%"
java --version > nul 2>&1
if errorlevel 1 (
echo "[!] Impossible de configurer l'environnement. Merci de relancer l'installeur"
goto EOERR
)
echo "[V] Installation de java réussi"
:FABRIC
echo "Section Installation de Fabric"
rem Création dossier temporaire
cd %userprofile%
echo "Téléchargement fabric.jar"
rem télécharge fabric
curl --output fabric.jar --url https://maven.fabricmc.net/net/fabricmc/fabric-installer/1.1.1/fabric-installer-1.1.1.jar
echo "Début installation Fabric"
java -jar fabric.jar client -dir "%userprofile%\AppData\Roaming\.minecraft"
if errorlevel 1 goto EOERR
del fabric.jar
echo "[V] Installation de Fabric réussi"
goto INSTALLMODS
:INSTALLMODS
echo "Téléchargement et installation des mods"
cd "%userprofile%\AppData\Roaming\.minecraft\mods"
curl -O -L --url "https://mediafilez.forgecdn.net/files/7598/646/xaerominimap-fabric-1.21.11-25.3.10.jar"
curl -O -L --url "https://mediafilez.forgecdn.net/files/7525/82/iris-fabric-1.10.5%%2Bmc1.21.11.jar"
curl -O -L --url "https://cdn.modrinth.com/data/uXXizFIs/versions/Ii0gP3D8/ferritecore-8.2.0-fabric.jar"
curl -O -L --url "https://cdn.modrinth.com/data/AANobbMI/versions/1OWNgWVR/sodium-fabric-0.8.4%%2Bmc1.21.11.jar"
curl -O -L --url "https://cdn.modrinth.com/data/gvQqBUqZ/versions/qvNsoO3l/lithium-fabric-0.21.3%%2Bmc1.21.11.jar"
curl -O -L --url "https://mediafilez.forgecdn.net/files/7614/201/voicechat-fabric-1.21.11-2.6.12.jar"
curl -O -L --url "https://mediafilez.forgecdn.net/files/7361/977/fabric-api-0.140.2%%2B1.21.11.jar"
curl -O -L --url "https://mediafilez.forgecdn.net/files/7598/539/xaeroworldmap-fabric-1.21.11-1.40.11.jar"
echo "[V] Fin de l'installation des mods"
goto EOF
:EOERR
echo "[!] Erreur lors de l'installation. Envoyer moi l'erreur en privé"
pause
exit /b 1
:EOF
echo "[V] Installation réussi"
pause
exit /b 0