24 lines
909 B
Python
24 lines
909 B
Python
|
def check():
|
||
|
print("install Good")
|
||
|
|
||
|
|
||
|
def installFiles(self, clientpath, serverpath):
|
||
|
#first install server
|
||
|
self.installstep.set("Downloading Server Through Git")
|
||
|
sysctl = Popen(['git', 'clone', 'https://openwf.io/SpaceNinjaServer.git', serverpath])
|
||
|
self.installprog.set(1)
|
||
|
sysctl.wait()
|
||
|
self.installstep.set("Installing Server Requirements (via npm)")
|
||
|
self.installprog.set(25)
|
||
|
sysctl = Popen(["npm", '--prefix', f'{serverpath}', 'install'])
|
||
|
sysctl.wait()
|
||
|
self.installstep.set("Copying Config File")
|
||
|
shutil.copy(serverpath + "/config.json.example", serverpath + "/config.json")
|
||
|
self.installstep.set("Starting Bootstrapper Download")
|
||
|
self.installprog.set(50)
|
||
|
print("Server install worked. ")
|
||
|
helpers.downloadlatestdll(clientpath)
|
||
|
self.installprog.set(99)
|
||
|
self.installstep.set("Install Complete!\nPress next then restart to get started!")
|
||
|
|