2024-09-24 12:54:57 +00:00
|
|
|
Specifies shell commands to run after build is finished.
|
|
|
|
|
|
|
|
```lua
|
|
|
|
postbuildcommands { "commands" }
|
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters ###
|
|
|
|
|
|
|
|
`commands` is one or more shell commands. These commands will be passed to the shell exactly as entered, including path separators and the like.
|
|
|
|
|
|
|
|
### Applies To ###
|
|
|
|
|
|
|
|
Project configurations.
|
|
|
|
|
|
|
|
### Availability ###
|
|
|
|
|
|
|
|
Premake 4.4 or later.
|
|
|
|
|
|
|
|
### Examples ###
|
|
|
|
|
|
|
|
```lua
|
2024-09-29 02:04:03 +00:00
|
|
|
filter { "system:arch" }
|
2024-09-24 12:54:57 +00:00
|
|
|
postbuildcommands { "copy default.config bin\\project.config" }
|
|
|
|
|
2024-09-29 02:04:03 +00:00
|
|
|
filter { "not system:arch" }
|
2024-09-24 12:54:57 +00:00
|
|
|
postbuildcommands { "cp default.config bin/project.config" }
|
|
|
|
```
|
|
|
|
|
|
|
|
### See Also ###
|
|
|
|
* [Custom Build Commands](Custom-Build-Commands.md)
|
|
|
|
* [Tokens](Tokens.md)
|
|
|
|
* [prebuildcommands](prebuildcommands.md)
|
|
|
|
* [prelinkcommands](prelinkcommands.md)
|