-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproctico-eclipce.cmd
More file actions
133 lines (125 loc) · 4.02 KB
/
Copy pathproctico-eclipce.cmd
File metadata and controls
133 lines (125 loc) · 4.02 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
@echo off
title Proctico for Eclipse
::
:: This file is in Development, may cause some issues!
::
:: This prompt is made to make work easy and Do not want exploit the License of FabricMC.
::
echo.
echo.
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍť
echo ş Proctico for Eclipse ş
echo ĚÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍš
echo ş (*) MIT License ş
echo ĚÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍš
echo ş - Not to be published after some modifications. ş
echo ş ş
echo ş Follow me on YT: https://youtube.com/@infoyps ş
echo ş Follow me on GitHub: https://github.com/PSGitHubUser1 ş
echo ş My Discord ID: PSPlaysMC#3778 ş
echo ş Drop a star to repo: https://bit.ly/infoyProctico ş
echo ČÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ[Proctico]ÍÍÍÍź
echo.
echo.
pause
echo.
net session >nul 2>&1
if %errorLevel% == 0 (
echo.
echo şş Running as Administrator. şş
echo.
) else (
echo.
echo.
echo şş Please run this File as an Administrator. şş
echo.
echo.
pause
exit
)
echo.
cd "%userprofile%\Desktop"
curl -LJO https://github.com/FabricMC/fabric-example-mod/archive/refs/heads/1.19.zip || wget -LJO https://github.com/FabricMC/fabric-example-mod/archive/refs/heads/1.19.zip
echo.
cd "%USERPROFILE%\Desktop"
powershell -ExecutionPolicy Bypass -Command "Start-Process powershell -Verb runAs -ArgumentList '-ExecutionPolicy','AllSigned','-Command exit'"
echo.
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))"
echo.
echo.
choco list --local-only | findstr /i /c:"eclipse" > nul
if %ERRORLEVEL% EQU 0 (
echo.
echo Eclipse is already installed.
echo.
) else (
echo.
echo Eclipse is not installed. Installing Eclipse...
echo.
choco install eclipse
echo.
)
echo.
pause
echo.
cd "%userprofile%\Desktop"
mkdir fabric-example-mod-1.19
echo.
powershell -command "Expand-Archive -Path "%userprofile%\Desktop\fabric-example-mod-1.19.zip" -DestinationPath "%userprofile%\Desktop\fabric-example-mod-1.19" -Force"
echo.
del %userprofile%\Desktop\fabric-example-mod-1.19.zip
echo.
move "%userprofile%\Desktop\fabric-example-mod-1.19\fabric-example-mod-1.19\*" "%userprofile%\Desktop\fabric-example-mod-1.19"
echo.
del "%userprofile%\Desktop\fabric-example-mod-1.19\fabric-example-mod-1.19\.github\workflows\build.yml"
echo.
rmdir "%userprofile%\Desktop\fabric-example-mod-1.19\fabric-example-mod-1.19\.github\workflows"
echo.
rmdir "%userprofile%\Desktop\fabric-example-mod-1.19\fabric-example-mod-1.19\.github"
echo.
move "%userprofile%\Desktop\fabric-example-mod-1.19\fabric-example-mod-1.19\gradle" "%userprofile%\Desktop\fabric-example-mod-1.19"
echo.
move "%userprofile%\Desktop\fabric-example-mod-1.19\fabric-example-mod-1.19\src" "%userprofile%\Desktop\fabric-example-mod-1.19"
echo.
rmdir "%userprofile%\Desktop\fabric-example-mod-1.19\fabric-example-mod-1.19"
echo.
del "%userprofile%\Desktop\fabric-example-mod-1.19\.gitignore"
echo.
del "%userprofile%\Desktop\fabric-example-mod-1.19\README.md"
pause
echo.
cd "%USERPROFILE%"
mkdir eclipse-workspace
cd "%USERPROFILE%\eclipse-workspace"
move "%userprofile%\Desktop\fabric-example-mod-1.19" "%USERPROFILE%\eclipse-workspace\fabric-example-mod-1.19"
echo.
echo.
echo.
echo Your Project (fabric-example-mod-1.19) has been moved to '%USERPROFILE%\eclipse-workspace'
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo eclipse.exe will open after closing this window by pressing 'Press any key to Continue' at last.
echo.
echo.
echo.
echo.
echo.
pause
echo.
cd %USERPROFILE%
echo.
cd eclipse
echo.
cd java-2023-03
echo.
cd eclipse
echo.
start eclipse.exe
pause