diff --git a/appveyor.yml b/appveyor.yml index 019aa5c73e2828eb363d5c4a308b9b074aab84e4..b3e62b24b7fb96cbdc87687b88d2ef0ed7253402 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -30,7 +30,7 @@ services: build_script: - python setupLibs.py - - python %TSK_HOME%\win32\updateBuildLibs.py -m + - python win32\updateBuildLibs.py -m - ps: ant -version - ps: pushd bindings/java - cmd: ant dist-PostgreSQL diff --git a/win32/updateBuildLibs.py b/win32/updateBuildLibs.py index 442d7163dd206c3082c47a77155ed1d990b42cfd..96922280662ad28b4ef6c3706a19efc2bfa7763c 100644 --- a/win32/updateBuildLibs.py +++ b/win32/updateBuildLibs.py @@ -20,7 +20,6 @@ CURRENT_PATH = os.getcwd() # save the build log in the output directory LOG_PATH = os.path.join(CURRENT_PATH, 'output', time.strftime("%Y.%m.%d-%H.%M.%S")) -APPVEYOR = os.getenv("APPVEYOR",False) MINIMAL = False def pullAndBuildAllDependencies(branch): ''' @@ -210,7 +209,11 @@ def buildTSK(wPlatform, target): print ("Building TSK " + str(wPlatform) + "-bit " + target + " build.") sys.stdout.flush() - if(APPVEYOR): + TSK_HOME = os.getenv("TSK_HOME",False) + + if not TSK_HOME: + print("Please set the TSK_HOME env variable") + else: os.chdir(os.path.join(os.getenv("TSK_HOME"),"win32")) vs = []