Build with latest server bin?
This commit is contained in:
parent
12370c8cc3
commit
57b9b1a094
1 changed files with 16 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import urllib32
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
cur_wd = os.getcwd()
|
cur_wd = os.getcwd()
|
||||||
|
|
@ -79,9 +81,23 @@ def delete_files():
|
||||||
os.remove(http_bin_name)
|
os.remove(http_bin_name)
|
||||||
os.chdir(cur_wd)
|
os.chdir(cur_wd)
|
||||||
|
|
||||||
|
def update_terraria_exe():
|
||||||
|
url = urllib2.urlopen('http://direct.tshock.co:8085/browse/TERRA-TSAPI/latestSuccessful/artifact/JOB1/Server-Bin/TerrariaServer.exe')
|
||||||
|
localFile = open('TerrariaServer.exe', 'w')
|
||||||
|
localFile.write(url.read())
|
||||||
|
localFile.close()
|
||||||
|
shutil.copy(terraria_bin_name, terraria_bin)
|
||||||
|
os.remove(terraria_bin_name)
|
||||||
|
|
||||||
|
def build_software():
|
||||||
|
subprocess.call(['/usr/local/bin/xbuild'], ['./TShockAPI/TShockAPI.csproj'], ['/p:Configuration=Release'])
|
||||||
|
subprocess.call(['/usr/local/bin/xbuild'], ['./TShockAPI/TShockAPI.csproj'], ['/p:Configuration=Debug'])
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
create_release_folder()
|
create_release_folder()
|
||||||
|
update_terraria_exe()
|
||||||
copy_dependencies()
|
copy_dependencies()
|
||||||
|
build_software()
|
||||||
package_release()
|
package_release()
|
||||||
package_debug()
|
package_debug()
|
||||||
delete_files()
|
delete_files()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue