-
Notifications
You must be signed in to change notification settings - Fork 11
/
hemtt.toml
94 lines (81 loc) · 4.33 KB
/
hemtt.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name = "AAW"
mainprefix = "tc"
modname = "AAW"
prefix = ""
author = "AAW Team"
sig_version = 3
version = "0.24.0.2345"
reuse_private_key = false
files = []
include = ["./include"]
check = [
"!version_set",
"!comment_isdev"
]
postbuild = [
"!version_unset",
"!uncomment_isdev"
]
releasebuild = [
"@zip @AAW"
]
key_name = "AAW_{{version}}"
authority = "AAW_{{version}}-{{git \"id 8\"}}"
[header_exts]
version= "{{git \"id 8\"}}"
[scripts.version_set]
steps_linux = [
"echo 'Setting version'",
"sed -i -r -s 's/#define MAJOR 0/#define MAJOR {{semver.major}}/g' addons/AAW_Server/macros.hpp",
"sed -i -r -s 's/#define MINOR 0/#define MINOR {{semver.minor}}/g' addons/AAW_Server/macros.hpp",
"sed -i -r -s 's/#define PATCHLVL 0/#define PATCHLVL {{semver.patch}}/g' addons/AAW_Server/macros.hpp",
"sed -i -r -s 's/#define BUILD 0/#define BUILD {{semver.build}}/g' addons/AAW_Server/macros.hpp",
]
steps_windows = [
"echo 'Setting version'",
"powershell -Command foreach ($f in 'addons/AAW_Server/macros.hpp') {(Get-Content $f) -replace '#define MAJOR 0', '#define MAJOR {{semver.major}}' -join \"`n\" ^| Set-Content -NoNewline $f; Add-Content -NoNewline \"`n\" $f}",
"powershell -Command foreach ($f in 'addons/AAW_Server/macros.hpp') {(Get-Content $f) -replace '#define MINOR 0', '#define MINOR {{semver.minor}}' -join \"`n\" ^| Set-Content -NoNewline $f; Add-Content -NoNewline \"`n\" $f}",
"powershell -Command foreach ($f in 'addons/AAW_Server/macros.hpp') {(Get-Content $f) -replace '#define PATCHLVL 0', '#define PATCHLVL {{semver.patch}}' -join \"`n\" ^| Set-Content -NoNewline $f; Add-Content -NoNewline \"`n\" $f}",
"powershell -Command foreach ($f in 'addons/AAW_Server/macros.hpp') {(Get-Content $f) -replace '#define BUILD 0', '#define BUILD {{semver.build}}' -join \"`n\" ^| Set-Content -NoNewline $f; Add-Content -NoNewline \"`n\" $f}",
]
only_release = true
show_output = true
[scripts.version_unset]
steps_linux = [
"echo 'Unsetting version'",
"sed -i -r -s 's/#define MAJOR {{semver.major}}/#define MAJOR 0/g' addons/AAW_Server/macros.hpp",
"sed -i -r -s 's/#define MINOR {{semver.minor}}/#define MINOR 0/g' addons/AAW_Server/macros.hpp",
"sed -i -r -s 's/#define PATCHLVL {{semver.patch}}/#define PATCHLVL 0/g' addons/AAW_Server/macros.hpp",
"sed -i -r -s 's/#define BUILD {{semver.build}}/#define BUILD 0/g' addons/AAW_Server/macros.hpp",
]
steps_windows = [
"echo 'Unsetting version'",
"powershell -Command foreach ($f in 'addons/AAW_Server/macros.hpp') {(Get-Content $f) -replace '#define MAJOR {{semver.major}}', '#define MAJOR 0' -join \"`n\" ^| Set-Content -NoNewline $f; Add-Content -NoNewline \"`n\" $f}",
"powershell -Command foreach ($f in 'addons/AAW_Server/macros.hpp') {(Get-Content $f) -replace '#define MINOR {{semver.minor}}', '#define MINOR 0' -join \"`n\" ^| Set-Content -NoNewline $f; Add-Content -NoNewline \"`n\" $f}",
"powershell -Command foreach ($f in 'addons/AAW_Server/macros.hpp') {(Get-Content $f) -replace '#define PATCHLVL {{semver.patch}}', '#define PATCHLVL 0' -join \"`n\" ^| Set-Content -NoNewline $f; Add-Content -NoNewline \"`n\" $f}",
"powershell -Command foreach ($f in 'addons/AAW_Server/macros.hpp') {(Get-Content $f) -replace '#define BUILD {{semver.build}}', '#define BUILD 0' -join \"`n\" ^| Set-Content -NoNewline $f; Add-Content -NoNewline \"`n\" $f}",
]
only_release = true
show_output = true
[scripts.comment_isdev]
steps_linux = [
"echo 'Commenting out #define ISDEV'",
"sed -i -r -s 's:#define ISDEV:// #define ISDEV:g' addons/AAW_Server/macros.hpp",
]
steps_windows = [
"echo 'Commenting out #define ISDEV'",
"powershell -Command foreach ($f in 'addons/AAW_Server/macros.hpp') {(Get-Content $f) -replace '#define ISDEV', '// #define ISDEV' -join \"`n\" ^| Set-Content -NoNewline $f; Add-Content -NoNewline \"`n\" $f}",
]
only_release = true
show_output = true
[scripts.uncomment_isdev]
steps_linux = [
"echo 'Uncommenting #define ISDEV'",
"sed -i -r -s 's:// #define ISDEV:#define ISDEV:g' addons/AAW_Server/macros.hpp",
]
steps_windows = [
"echo 'Uncommenting #define ISDEV'",
"powershell -Command foreach ($f in 'addons/AAW_Server/macros.hpp') {(Get-Content $f) -replace '// #define ISDEV', '#define ISDEV' -join \"`n\" ^| Set-Content -NoNewline $f; Add-Content -NoNewline \"`n\" $f}",
]
only_release = true
show_output = true