Set bool to false for SSC config enabled.
Add test script that will auto gen documentation.
This commit is contained in:
parent
b031f45cb0
commit
5e2f0d3604
2 changed files with 18 additions and 1 deletions
17
test_release.py
Normal file
17
test_release.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import subprocess
|
||||
import shutil
|
||||
import os.path
|
||||
import zipfile
|
||||
|
||||
def generate_release():
|
||||
zip = zipfile.ZipFile("tshock_release", "r")
|
||||
zip.extractall()
|
||||
|
||||
def generate_configs():
|
||||
subprocess.call(['/usr/bin/mono', 'TerrariaServer.exe', '-dump'])
|
||||
if (!os.path.isfile('ConfigDescriptions.txt') || !os.path.isfile('PermissionsDescriptions.txt') || !os.path.isfile('ServerSideConfigDescriptions.txt')):
|
||||
raise CalledProcessError(1)
|
||||
|
||||
if __name__ == '__main__':
|
||||
generate_release()
|
||||
generate_configs()
|
||||
Loading…
Add table
Add a link
Reference in a new issue