mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Tools - Build dev (filepatching) with hemtt if installed (#8061)
* Build dev (filepatching) with hemtt if installed * Update build.py
This commit is contained in:
parent
d991f8ebdc
commit
8b8abec70e
@ -9,6 +9,17 @@ MAINPREFIX = "z"
|
|||||||
PREFIX = "ace_"
|
PREFIX = "ace_"
|
||||||
##########################
|
##########################
|
||||||
|
|
||||||
|
def tryHemttBuild(projectpath):
|
||||||
|
hemttExe = os.path.join(projectpath, "hemtt.exe")
|
||||||
|
if os.path.isfile(hemttExe):
|
||||||
|
os.chdir(projectpath)
|
||||||
|
ret = subprocess.call([hemttExe, "pack"], stderr=subprocess.STDOUT)
|
||||||
|
print("Using hemtt: {}".format(ret));
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
print("hemtt not installed");
|
||||||
|
return False
|
||||||
|
|
||||||
def mod_time(path):
|
def mod_time(path):
|
||||||
if not os.path.isdir(path):
|
if not os.path.isdir(path):
|
||||||
return os.path.getmtime(path)
|
return os.path.getmtime(path)
|
||||||
@ -40,6 +51,8 @@ def main():
|
|||||||
projectpath = os.path.dirname(os.path.dirname(scriptpath))
|
projectpath = os.path.dirname(os.path.dirname(scriptpath))
|
||||||
addonspath = os.path.join(projectpath, "addons")
|
addonspath = os.path.join(projectpath, "addons")
|
||||||
|
|
||||||
|
if (tryHemttBuild(projectpath)): return
|
||||||
|
|
||||||
os.chdir(addonspath)
|
os.chdir(addonspath)
|
||||||
|
|
||||||
made = 0
|
made = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user