-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for building with HEMTT v1.0+ (#1565)
Co-authored-by: jonpas <[email protected]>
- Loading branch information
1 parent
6ce801b
commit 66264b9
Showing
45 changed files
with
1,078 additions
and
738 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
let releases = HEMTT_RFS.join("releases"); | ||
|
||
let src = releases.join(HEMTT.project().prefix() + "-" + HEMTT.project().version().to_string() + ".zip"); | ||
let dst = releases.join(HEMTT.project().name() + "_v" + HEMTT.project().version().to_string_short() + ".zip"); | ||
|
||
print("Moving zip to " + dst); | ||
if !src.move(dst) { | ||
fatal("Failed to move " + src + " to " + dst); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
let modcpp = HEMTT_VFS.join("mod.cpp").open_file().read(); | ||
modcpp.replace("0.0.0", HEMTT.project().version().to_string_short()); | ||
HEMTT_VFS.join("mod.cpp").create_file().write(modcpp); | ||
print("mod.cpp version set"); | ||
|
||
let cfgmodshpp = HEMTT_VFS.join("addons").join("main_a3").join("CfgMods.hpp").open_file().read(); | ||
cfgmodshpp.replace("0.0.0", HEMTT.project().version().to_string_short()); | ||
HEMTT_VFS.join("addons").join("main_a3").join("CfgMods.hpp").create_file().write(cfgmodshpp); | ||
print("addons/main_a3/CfgMods.hpp version set"); | ||
|
||
let scriptversion = HEMTT_VFS.join("addons").join("main").join("script_version.hpp").open_file().read(); | ||
let scriptversion_date = date("[year repr:last_two][month][day]"); | ||
scriptversion.replace("000000", scriptversion_date); | ||
HEMTT_VFS.join("addons").join("main").join("script_version.hpp").create_file().write(scriptversion); | ||
print("addons/main/script_version.hpp build set to " + scriptversion_date); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name = "CBA_A3" | ||
prefix = "cba" | ||
author = "CBATeam" | ||
|
||
[files] | ||
include = [ | ||
"mod.cpp", | ||
"README.md", | ||
"LICENSE.md", | ||
"logo_cba_ca.paa", | ||
"meta.cpp", | ||
"userconfig/**", | ||
] | ||
|
||
[version] | ||
git_hash = 0 | ||
|
||
[asc] | ||
enabled = true | ||
exclude = [ | ||
"/initsettings.sqf", | ||
"/initkeybinds.sqf", | ||
"/xeh_prep.sqf", | ||
"/backwards_comp.sqf", | ||
"settings/gui_createcategory.sqf", | ||
"diagnostic/fnc_isdebugconsoleallowed.sqf", | ||
"xeh/fnc_initdisplay.sqf", | ||
"xeh/fnc_startloadingscreen.sqf", | ||
"xeh/fnc_endloadingscreen.sqf", | ||
] | ||
|
||
[hemtt.config] | ||
preset = "Hemtt" | ||
|
||
[hemtt.release] | ||
folder = "CBA_A3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.