1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed postbuild commands

This commit is contained in:
Brian Fiete 2020-01-27 17:15:40 -08:00
parent efbef794e0
commit ff8aae1a72

View file

@ -1017,9 +1017,21 @@ namespace IDE
completedCompileCmd.mFailed = true;
}
}
void DoPostBuild()
{
switch (QueueProjectCustomBuildCommands(project, targetPath, runAfter ? options.mBuildOptions.mBuildCommandsOnRun : options.mBuildOptions.mBuildCommandsOnCompile, options.mBuildOptions.mPostBuildCmds))
{
case .NoCommands:
case .HadCommands:
case .Failed:
completedCompileCmd.mFailed = true;
}
}
if (project.mGeneralOptions.mTargetType == .CustomBuild)
{
DoPostBuild();
return true;
}
@ -1175,17 +1187,7 @@ namespace IDE
return false;
}
if (hotProject == null)
{
switch (QueueProjectCustomBuildCommands(project, targetPath, runAfter ? options.mBuildOptions.mBuildCommandsOnRun : options.mBuildOptions.mBuildCommandsOnCompile, options.mBuildOptions.mPostBuildCmds))
{
case .NoCommands:
case .HadCommands:
case .Failed:
completedCompileCmd.mFailed = true;
}
}
DoPostBuild();
return true;
}
}