Commit 605eb796 authored by Jan Speichert's avatar Jan Speichert
Browse files

Test for DefaultAction Dot Removal

parent ef32780e
......@@ -871,4 +871,12 @@ class CfgActions
{
textDefault = "<img image='\A3\ui_f\data\igui\cfg\actions\getindriver_ca.paa' size='0' shadow=0 />";
};
};
class CfgInGameUI
{
class DefaultAction
{
size = 0;
};
};
\ No newline at end of file
#define MAJOR 1
#define MINOR 0
#define PATCHLVL 0
#define BUILD 300
#define BUILDDATE Mon, 31 Oct 2014 11:03:12 +0100
\ No newline at end of file
#define BUILD 1
#define BUILDDATE 2015-10-01 22:21:07.849000
\ No newline at end of file
0
1
\ No newline at end of file
......@@ -29,7 +29,7 @@ def file_put_contents(filename, data):
with open(filename, 'w') as f:
f.write(data)
buildNumber = file_get_contents(os.path.join("p:\\","sol","tfa_fix","buildnumber"))
buildNumber = file_get_contents(os.path.join("p:\\","sol","clearhud","buildnumber"))
buildNumber = int(buildNumber) + 1
platform = "arma3"
......@@ -55,24 +55,24 @@ def build_dir(dir, key, version):
cmd = subprocess.Popen(["rapify", "-P", os.path.join(dir,addonDir,"config.cpp")])
cmd.wait()
if os.path.isfile(os.path.join(dir,addonDir,"config.bin")):
if os.path.isfile(os.path.join("p:\\","sol","tfa_fix","temp",addonDir)):
subprocess.call("rmdir " + os.path.join("p:\\","sol","tfa_fix","temp",addonDir) + "\\" + " /s /q", shell=True)
if os.path.isfile(os.path.join("p:\\","sol","clearhud","temp",addonDir)):
subprocess.call("rmdir " + os.path.join("p:\\","sol","clearhud","temp",addonDir) + "\\" + " /s /q", shell=True)
cmd = subprocess.Popen(["robocopy",
"/E",
os.path.join(dir,addonDir),
os.path.join("p:\\","sol","tfa_fix","temp",addonDir),
os.path.join("p:\\","sol","clearhud","temp",addonDir),
"script_*.hpp", "*.sqf", "*.paa", "*.b64", "*.txt", "*.bin", "*.wss", "*.lip", "*.p3d", "$PBOPREFIX$"
])
cmd.wait()
os.remove(os.path.join(dir,addonDir,"config.bin"))
subprocess.call("pboProject.exe -P +E=\"arma3\" +Clean +N +X +W=p:\\ -Mod=p:\\sol\\tfa_fix\\temp\\ p:\\sol\\tfa_fix\\temp\\%s"%(addonDir))
if os.path.isfile(os.path.join("p:\\","sol","tfa_fix","temp","addons",addonDir + ".pbo")):
subprocess.call("rmdir " + os.path.join("p:\\","sol","tfa_fix","temp",addonDir) + "\\" + " /s /q", shell=True)
os.rename(os.path.join("p:\\","sol","tfa_fix","temp","addons",addonDir + ".pbo"),
os.path.join("p:\\","sol","tfa_fix","build_pbo","sol_tfa_fix_" + addonDir + ".pbo"))
if os.path.isfile(os.path.join("p:\\","sol","tfa_fix","build_pbo","sol_tfa_fix_" + addonDir + ".pbo")):
pbo_file = os.path.join("p:\\","sol","tfa_fix","build_pbo","sol_tfa_fix_" + addonDir + ".pbo")
subprocess.call("pboProject.exe -P +E=\"arma3\" +Clean +N +X +W=p:\\ -Mod=p:\\sol\\clearhud\\temp\\ p:\\sol\\clearhud\\temp\\%s"%(addonDir))
if os.path.isfile(os.path.join("p:\\","sol","clearhud","temp","addons",addonDir + ".pbo")):
subprocess.call("rmdir " + os.path.join("p:\\","sol","clearhud","temp",addonDir) + "\\" + " /s /q", shell=True)
os.rename(os.path.join("p:\\","sol","clearhud","temp","addons",addonDir + ".pbo"),
os.path.join("p:\\","sol","clearhud","build_pbo","sol_clearhud_" + addonDir + ".pbo"))
if os.path.isfile(os.path.join("p:\\","sol","clearhud","build_pbo","sol_clearhud_" + addonDir + ".pbo")):
pbo_file = os.path.join("p:\\","sol","clearhud","build_pbo","sol_clearhud_" + addonDir + ".pbo")
cmd = subprocess.Popen(["DSSignFile",
key,
pbo_file
......@@ -86,11 +86,11 @@ def build_dir(dir, key, version):
raise Exception("Pbo build failed")
def prepare():
file_put_contents(os.path.join("p:\\","sol","tfa_fix","buildnumber"), str(buildNumber))
file_put_contents(os.path.join("p:\\","sol","clearhud","buildnumber"), str(buildNumber))
# file_put_contents(os.path.join("p:\\","idi","src","ACRE2Shared","version.h"), cppHeader)
pboHeader = "#define MAJOR %s\n#define MINOR %s\n#define PATCHLVL %s\n#define BUILD %s\n#define BUILDDATE %s" %(major, minor, subminor, buildNumber, datetime.datetime.now().isoformat(' '))
file_put_contents(os.path.join("p:\\","sol","tfa_fix","addons","main","script_version.hpp"), pboHeader)
file_put_contents(os.path.join("p:\\","sol","clearhud","addons","main","script_version.hpp"), pboHeader)
shared.print_colored('===========================================', cons.FOREGROUND_BLUE)
shared.print_colored(' BUILD: Clearing Global Addons', cons.FOREGROUND_BLUE)
......@@ -121,13 +121,13 @@ def compile_addons(args):
# print "\nBUILD: Creating new signing keypair\n";
# chdir("p:\\idi\\build_keys\\");
# passthru(sprintf("DSCreateKey acre2_%s", $stringVer));
cmd = subprocess.Popen(["DSCreateKey", "sol_tfa_fix"], cwd="build_keys")
cmd = subprocess.Popen(["DSCreateKey", "sol_clearhud"], cwd="build_keys")
cmd.wait()
# $privateKey = sprintf("p:\\idi\\build_keys\\acre2_%s.biprivatekey", $stringVer);
privateKey = os.path.join("p:\\","sol","tfa_fix","build_keys","sol_tfa_fix.biprivatekey")
privateKey = os.path.join("p:\\","sol","clearhud","build_keys","sol_clearhud.biprivatekey")
# $publicKey = sprintf("p:\\idi\\build_keys\\acre2_%s.bikey", $stringVer);
publicKey = os.path.join("p:\\","sol","tfa_fix","build_keys","sol_tfa_fix.bikey")
shutil.copy(publicKey, "p:\\sol\\tfa_fix\\build_pbo\\key\\sol_tfa_fix.bikey")
publicKey = os.path.join("p:\\","sol","clearhud","build_keys","sol_clearhud.bikey")
shutil.copy(publicKey, "p:\\sol\\clearhud\\build_pbo\\key\\sol_clearhud.bikey")
# if(!file_exists($privateKey)) {
# die(sprintf("FAILED TO CREATE PRIVATE KEY: %s", $privateKey));
# }
......@@ -145,7 +145,7 @@ def compile_addons(args):
# chdir("p:\\");
# build_dir('p:\idi\clients\acre\Addons', $addonPath, 'acre', $privateKey, $stringVer, $useAddonBuilder);
build_dir(os.path.join("p:\\","sol","tfa_fix","addons"), privateKey, stringVer)
build_dir(os.path.join("p:\\","sol","clearhud","addons"), privateKey, stringVer)
# build_dir('p:\idi\clients\global\Addons', $addonPath, 'acre', $privateKey, $stringVer, $useAddonBuilder);
......
1.0.0.1
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment