BrettMayson / HEMTT

Build System for Arma 3
http://hemtt.dev/
GNU General Public License v2.0
113 stars 40 forks source link

Feature Request: Expand templating in build steps #160

Closed bux closed 4 years ago

bux commented 5 years ago

HEMTT Version: 0.6.1

As a user I would like to use project file variables inside my build steps (e.g. {{signame}}} so that I don't have to repeat already templated strings and thus reduce potential erros.

hemtt.json

"modname": "sob_{{prefix}}",
"signame": "{{prefix}}_sob_{{version}}",
"keyname": "{{prefix}}_sob_{{version}}",
...
"scripts": {
    "build": {
        "steps_windows": [
            "powershell ./tools/Handle-Additionals.ps1 {{version}} \"@sob_{{prefix}}\" {{prefix}}_sob_{{version}}",
        ]
    }
}

Would ideally be:

hemtt.json

...
"scripts": {
    "build": {
        "steps_windows": [
            "powershell ./tools/Handle-Additionals.ps1 {{version}} {{modname}} {{keyname}}",
        ]
    }
}
BrettMayson commented 4 years ago

Closed by 0cea4540403df9caae772ef645ff4d96679fe6b3

To be released in 0.7.5