@@ -23,14 +23,14 @@ def end():
23
23
if dire == "" :
24
24
print ("Installing eClient to default directory..." )
25
25
os .chdir (r"C:\\Users\\{}\\AppData\\Roaming\\" .format (usr_accnt ))
26
- wget .download ("https://eclient- libs.earthsoft.me /eclient.zip" , bar = wget .bar_adaptive )
27
- filename3 = wget .detect_filename ("https://eclient- libs.earthsoft.me /eclient.zip" )
26
+ wget .download ("https://libs-pi.vercel.app /eclient.zip" , bar = wget .bar_adaptive )
27
+ filename3 = wget .detect_filename ("https://libs-pi.vercel.app /eclient.zip" )
28
28
os .system ('powershell -Command "Expand-Archive -LiteralPath eclient.zip -DestinationPath eClient"' )
29
29
os .system ("del eclient.zip" )
30
- wget .download ("https://eclient- libs.earthsoft.me /Install-Font.ps1" , bar = wget .bar_adaptive )
31
- wget .download ("https://eclient- libs.earthsoft.me /command.py" , bar = wget .bar_adaptive )
32
- filename5 = wget .detect_filename ("https://eclient- libs.earthsoft.me /command.py" )
33
- filename4 = wget .detect_filename ("https://eclient- libs.earthsoft.me /Install-Font.ps1" )
30
+ wget .download ("https://libs-pi.vercel.app /Install-Font.ps1" , bar = wget .bar_adaptive )
31
+ wget .download ("https://libs-pi.vercel.app /command.py" , bar = wget .bar_adaptive )
32
+ filename5 = wget .detect_filename ("https://libs-pi.vercel.app /command.py" )
33
+ filename4 = wget .detect_filename ("https://libs-pi.vercel.app /Install-Font.ps1" )
34
34
os .system ('move "Install-Font.ps1" "eClient/fonts"' )
35
35
os .chdir (r"C:\\Users\\{}\\AppData\\Roaming\\eClient\fonts" .format (usr_accnt ))
36
36
os .system ("powershell -executionpolicy bypass -File .\Install-Font.ps1 .\SF Pro Display Regular.otf" )
@@ -43,26 +43,28 @@ def end():
43
43
print ("Creating shortcut..." )
44
44
damn = "C:\\ Windows\\ System32\\ shortcut.exe"
45
45
isExist = os .path .exists (damn )
46
+
46
47
if isExist == True :
48
+ os .chdir (r"C:\\Users\\{}\\Desktop\\ " .format (usr_accnt ))
49
+ google = "C:\\ Users\\ {}\\ AppData\\ Roaming\\ eClient" .format (usr_accnt )
47
50
os .system (f"shortcut.exe /F:eClient.lnk /A:C /T:{ google } \\ eclient.pyw /W:{ google } /I:{ google } \\ mc.ico" )
48
51
elif isExist == False :
49
- wget .download ("https://eclient- libs.earthsoft.me/shortcut .exe" , bar = wget .bar_adaptive )
52
+ wget .download ("https://libs-pi.vercel.app/Shortcut .exe" , bar = wget .bar_adaptive )
50
53
shutil .move ('shortcut.exe' , 'C:\\ Windows\\ System32' .format (usr_accnt ))
51
54
google = "C:\\ Users\\ {}\\ AppData\\ Roaming\\ eClient" .format (usr_accnt )
52
55
os .chdir (r"C:\\Users\\{}\\Desktop\\ " .format (usr_accnt ))
53
56
os .system (f"shortcut.exe /F:eClient.lnk /A:C /T:{ google } \\ eclient.pyw /W:{ google } /I:{ google } \\ mc.ico" )
57
+ os .system ("pause" )
58
+
54
59
elif not dire == "" :
55
60
print ("Installing eClient to {}..." .format (dire ))
56
61
os .chdir (dire )
57
- wget .download ("https://eclient- libs.earthsoft.me /eclient.zip" , bar = wget .bar_adaptive )
58
- filename3 = wget .detect_filename ("https://eclient- libs.earthsoft.me /eclient.zip" )
62
+ wget .download ("https://libs-pi.vercel.app /eclient.zip" , bar = wget .bar_adaptive )
63
+ filename3 = wget .detect_filename ("https://libs-pi.vercel.app /eclient.zip" )
59
64
os .system ('powershell -Command "Expand-Archive -LiteralPath eclient.zip -DestinationPath eClient"' )
60
65
os .system ("del eclient.zip" )
61
- wget .download ("https://eclient-libs.earthsoft.me/Install-Font.ps1" , bar = wget .bar_adaptive )
62
- wget .download ("https://eclient-libs.earthsoft.me/command.py" , bar = wget .bar_adaptive )
63
- filename5 = wget .detect_filename ("https://eclient-libs.earthsoft.me/command.py" )
64
- filename4 = wget .detect_filename ("https://eclient-libs.earthsoft.me/Install-Font.ps1" )
65
- shutil .move ('Install-Font.ps1' , 'eClient/fonts' )
66
+ wget .download ("https://libs-pi.vercel.app/command.py" , bar = wget .bar_adaptive )
67
+ filename5 = wget .detect_filename ("https://libs-pi.vercel.app/command.py" )
66
68
os .chdir ("{}\\ eClient\\ fonts" .format (dire ))
67
69
os .system ("powershell -executionpolicy bypass -File .\Install-Font.ps1 .\SF Pro Display Regular.otf" )
68
70
os .system ("powershell -executionpolicy bypass -File .\Install-Font.ps1 .\SF Pro Display Bold.otf" )
@@ -72,21 +74,27 @@ def end():
72
74
shutil .move ('command.py' , 'C:\\ Users\\ {}\\ AppData\\ Local\\ Programs\\ Python\\ Python310\\ Lib\\ site-packages\\ minecraft_launcher_lib\\ ' .format (usr_accnt ))
73
75
print ("eClient installed." )
74
76
print ("Creating shortcut..." )
75
- wget .download ("https://eclient-libs.earthsoft.me/shortcut.exe" , bar = wget .bar_adaptive )
76
- shutil .move ('shortcut.exe' , 'C:\\ Windows\\ System32' .format (usr_accnt ))
77
- google2 = "{}\\ eClient" .format (dire )
78
- os .chdir (r"C:\\Users\\{}\\Desktop\\ " .format (usr_accnt ))
79
- os .system (f"shortcut.exe /F:eClient.lnk /A:C /T:{ google2 } \\ eclient.pyw /W:{ google2 } /I:{ google2 } \\ mc.ico" )
80
- print ("Shortcut created." )
77
+ damn = "C:\\ Windows\\ System32\\ shortcut.exe"
78
+ isExist = os .path .exists (damn )
79
+ if isExist == True :
80
+ google = "{}\\ eClient" .format (dire )
81
+ os .chdir (r"C:\\Users\\{}\\Desktop\\ " .format (usr_accnt ))
82
+ os .system (f"shortcut.exe /F:eClient.lnk /A:C /T:{ google } \\ eclient.pyw /W:{ google } /I:{ google } \\ mc.ico" )
83
+ elif isExist == False :
84
+ wget .download ("https://libs-pi.vercel.app/Shortcut.exe" , bar = wget .bar_adaptive )
85
+ shutil .move ('shortcut.exe' , 'C:\\ Windows\\ System32' .format (usr_accnt ))
86
+ google = "{}\\ eClient" .format (dire )
87
+ os .chdir (r"C:\\Users\\{}\\Desktop\\ " .format (usr_accnt ))
88
+ os .system (f"shortcut.exe /F:eClient.lnk /A:C /T:{ google } \\ eclient.pyw /W:{ google } /I:{ google } \\ mc.ico" )
81
89
os .system ("pause" )
82
90
83
91
84
92
def java ():
85
93
inst = input ("Do you have Java 17 installed? (Y/N): " )
86
- if inst == "Y" or "y" :
94
+ if inst == "Y" :
87
95
print ("Ok." )
88
96
end ()
89
- elif inst == "N" or "n" :
97
+ else :
90
98
os .system ("cls" )
91
99
print ("Installing Java 17....." )
92
100
wget .download ("https://download.bell-sw.com/java/17.0.3+7/bellsoft-jdk17.0.3+7-windows-amd64.msi" , bar = wget .bar_adaptive )
@@ -103,14 +111,14 @@ def dep():
103
111
java ()
104
112
105
113
py = input ("Do you have Python 3.10 installed? (Y/N): " )
106
- if py == "Y" or "y" :
114
+ if py == "Y" :
107
115
print ("Ok, installing packages." )
108
116
dep ()
109
- elif py == "N" or "n" :
117
+ else :
110
118
print ("Installing Python 3.10..." )
111
119
wget .download ("https://www.python.org/ftp/python/3.10.0/python-3.10.0-amd64.exe" , bar = wget .bar_adaptive )
112
- filename = wget .detect_filename ("https://www.python.org/ftp/python/3.10.0/python-3.10.0-amd64.exei " )
113
- os .system (f"msiexec /i { filename } " )
120
+ filename = wget .detect_filename ("https://www.python.org/ftp/python/3.10.0/python-3.10.0-amd64.exe " )
121
+ os .system (f"{ filename } " )
114
122
time .sleep (5 )
115
123
os .remove (f"{ filename } " )
116
124
dep ()
0 commit comments