Update release create script to support bcrypt
This commit is contained in:
parent
85661f3485
commit
20d24a53c8
1 changed files with 5 additions and 0 deletions
|
|
@ -17,12 +17,14 @@ json_bin_name = "Newtonsoft.Json.dll"
|
|||
http_bin_name = "HttpServer.dll"
|
||||
tshock_bin_name = "TShockAPI.dll"
|
||||
tshock_symbols = "TShockAPI.dll.mdb"
|
||||
bcrypt_bin_name = "BCrypt.Net.dll"
|
||||
|
||||
terraria_release_bin = os.path.join(cur_wd, "TerrariaServerAPI", "bin", "Release", terraria_bin_name)
|
||||
terraria_debug_bin = os.path.join(cur_wd, "TerrariaServerAPI", "bin", "Debug", terraria_bin_name)
|
||||
sql_dep = os.path.join(cur_wd, "SqlBins")
|
||||
http_bin = os.path.join(cur_wd, "HttpBins", http_bin_name)
|
||||
json_bin = os.path.join(cur_wd, "TShockAPI", json_bin_name)
|
||||
bcrypt_bin = os.path.join(cur_wd, "BCryptBins", bcrypt_bin_name)
|
||||
release_bin = os.path.join(cur_wd, "TShockAPI", "bin", "Release", tshock_bin_name)
|
||||
debug_folder = os.path.join(cur_wd, "TShockAPI", "bin", "Debug")
|
||||
|
||||
|
|
@ -33,6 +35,7 @@ def create_release_folder():
|
|||
def copy_dependencies():
|
||||
shutil.copy(http_bin, release_dir)
|
||||
shutil.copy(json_bin, release_dir)
|
||||
shutil.copy(bcrypt_bin, release_dir)
|
||||
shutil.copy(os.path.join(sql_dep, sqlite_dep), release_dir)
|
||||
for f in sql_bins_names:
|
||||
shutil.copy(os.path.join(sql_dep, f), release_dir)
|
||||
|
|
@ -54,6 +57,7 @@ def create_base_zip(name):
|
|||
zip.write(sqlite_dep)
|
||||
zip.write(http_bin_name, os.path.join("ServerPlugins", http_bin_name))
|
||||
zip.write(json_bin_name, os.path.join("ServerPlugins", json_bin_name))
|
||||
zip.write(bcrypt_bin_name, os.path.join("ServerPlugins", bcrypt_bin_name))
|
||||
for f in sql_bins_names:
|
||||
zip.write(f, os.path.join("ServerPlugins", f))
|
||||
return zip
|
||||
|
|
@ -84,6 +88,7 @@ def delete_files():
|
|||
os.remove(f)
|
||||
os.remove(sqlite_dep)
|
||||
os.remove(json_bin_name)
|
||||
os.remove(bcrypt_bin_name)
|
||||
os.remove(http_bin_name)
|
||||
os.chdir(cur_wd)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue