Commit 210ebf52 authored by Pietro Albini's avatar Pietro Albini

Add support for post-install commands

parent df7c219f
...@@ -281,6 +281,11 @@ class Branch: ...@@ -281,6 +281,11 @@ class Branch:
if total == 0: if total == 0:
log("[!] Warning: no artifact was installed!") log("[!] Warning: no artifact was installed!")
# Execute the post-install commands
if "after_install" in self.config:
for cmd in self.config["after_install"]:
self.exec_command(cmd, build=True)
# Check if the branch was successifully built # Check if the branch was successifully built
popen_args = self.command_popen_args(self.config["run"]) popen_args = self.command_popen_args(self.config["run"])
if os.path.exists(popen_args[0][0][0]): if os.path.exists(popen_args[0][0][0]):
......
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