Move scripts into ./scripts/ folder.
This commit is contained in:
parent
f353f8bcc7
commit
03c1182f27
3 changed files with 0 additions and 0 deletions
|
|
@ -1,17 +0,0 @@
|
|||
import subprocess
|
||||
import shutil
|
||||
import os.path
|
||||
import zipfile
|
||||
|
||||
def generate_release():
|
||||
zip = zipfile.ZipFile("tshock_release.zip", "r")
|
||||
zip.extractall()
|
||||
|
||||
def generate_configs():
|
||||
subprocess.call(['/usr/local/bin/mono', 'TerrariaServer.exe', '-dump'])
|
||||
if not os.path.isfile('ConfigDescriptions.txt') or not os.path.isfile('PermissionsDescriptions.txt') or not os.path.isfile('ServerSideConfigDescriptions.txt') or not os.path.isfile('RestDescriptions.txt'):
|
||||
raise CalledProcessError(1)
|
||||
|
||||
if __name__ == '__main__':
|
||||
generate_release()
|
||||
generate_configs()
|
||||
Loading…
Add table
Add a link
Reference in a new issue