Add package python script, replace .cmd with py variants from PS

This commit is contained in:
Vasily
2019-01-04 17:08:34 +01:00
parent 1f1d321398
commit bfb11a9dc8
6 changed files with 70 additions and 428 deletions
+5 -2
View File
@@ -6,8 +6,11 @@ import sys
import argparse
import subprocess
import shutil
import distutils.dir_util
#Const globals
VERSION_STRING = "2-8-0"
EXIT_CODE_SUCCESS = 0
EXIT_CODE_FAILURE_BUILD_APP = 1
EXIT_CODE_FAILURE_BUILD_LOCATION = 2
@@ -35,7 +38,7 @@ PLATFORM_TARGET = "AMD64"
#Mutable globals
ORIGINAL_DIR = ""
PROJECT_DIR = ""
OUTPUT_DIR = r"\\bin\\win64\\"
OUTPUT_DIR = r"\\bin\\win64\\AdvancedSettings"
DEPLOY_DIR = ""
current_activity = ""
@@ -116,7 +119,7 @@ def copy_file(src, dest):
def copy_folder(src, dest):
say(f"Copying {src} to {dest}")
shutil.copy(src, dest)
distutils.dir_util.copy_tree(src, dest)
say(f"{src} to {dest} copied.")