Refactored repo organization. Added Jenkinsfile.

This commit is contained in:
2022-04-24 00:01:55 -05:00
parent 44e072a723
commit 9cc55e516d
36 changed files with 169 additions and 81 deletions

View File

@@ -0,0 +1,26 @@
from glob import glob
import os
import shutil
PROP_SHOP_MODULES_DIR = "Props.Shop"
PROPS_SHOP_MODULES_DST = "Props/shops"
NET_VER = "net6.0"
SHOP_MODULE_GLOB = "**/bin/Release/{net_ver}/publish/*.{ext}"
EXTS = ["deps.json", "dll"]
def load():
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.chdir("..")
os.chdir(PROP_SHOP_MODULES_DIR)
for ext in EXTS:
results = glob(SHOP_MODULE_GLOB.format(net_ver=NET_VER, ext=ext))
for result in results:
shutil.copy(result, PROPS_SHOP_MODULES_DST)
if __name__ == "__main__":
load()