postcreate - HackStudio postcreate scripts
.postcreate shell scripts are executed by HackStudio after creating a new project.
It is possible to define project templates that set up HackStudio projects. These templates can contain custom setup logic in the form of a *.postcreate
script in the template directory. The script name must match the template's (directory) name. Postcreate scripts are regular shell scripts. They are executed from an indeterminate directory with the following arguments:
The script may error out with a non-zero exit code, but the project is still created. The user is informed of the error.
ProjectTemplate::create_project
in Userland/DevTools/HackStudio/ProjectTemplate.cpp
.