Skip to content

Commit eddeb42

Browse files
authored
LLL rewrite to python
1 parent a730418 commit eddeb42

File tree

1 file changed

+34
-9
lines changed

1 file changed

+34
-9
lines changed

source/download.py

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,37 @@
11
import urllib.request
2-
a = input("Select type of download ")
3-
if (a == "1"):
4-
print('Beginning downloading files...')
5-
zip = 'https://minecraft.azureedge.net/bin-win/bedrock-server-1.17.34.02.zip'
6-
urllib.request.urlretrieve(zip, 'bedrock_server.zip')
7-
else:
8-
print('Beginning downloading files...')
9-
zip1 = 'https://github.com/LiteLDev/LiteLoaderBDS/releases/download/1.2.4/LiteLoader.zip'
10-
urllib.request.urlretrieve(zip1, 'LiteLoader.zip')
2+
import os
3+
import zipfile
4+
import subprocess
5+
6+
pth=os.getcwd()
7+
8+
print('Beginning downloading files...')
9+
zip = 'https://minecraft.azureedge.net/bin-win/bedrock-server-1.17.34.02.zip'
10+
zip1 = 'https://github.com/LiteLDev/LiteLoaderBDS/releases/download/1.2.4/LiteLoader.zip'
11+
urllib.request.urlretrieve(zip, 'bedrock_server.zip')
12+
urllib.request.urlretrieve(zip1, 'LiteLoader.zip')
1113
print("Success!")
1214

15+
16+
print('Starting extract files')
17+
fantasy_zip = zipfile.ZipFile(pth + '\\bedrock_server.zip')
18+
fantasy_zip.extractall(pth)
19+
fantasy_zip = zipfile.ZipFile(pth + '\\LiteLoader.zip')
20+
fantasy_zip.extractall(pth)
21+
fantasy_zip.close()
22+
23+
print('All file extracted! Starting generate server')
24+
os.system(pth + '\\SymDB2.exe')
25+
26+
27+
for i in range( 0, 0 ):
28+
subprocess.call(('SymDB2.exe', str(i)))
29+
30+
os.system(pth + '\\bedrock_server.exe')
31+
32+
my_file = open('LL-loader.txt', 'w+')
33+
my_file.write('Hello!' + '\n')
34+
my_file.write('Thx for using LL-loader' + '\n')
35+
my_file.write('Github: https://github.com/Development-studio/LL-Loader')
36+
my_file.close()
37+

0 commit comments

Comments
 (0)