Southclaws / sampctl

The Swiss Army Knife of SA:MP - vital tools for any server owner or library maintainer.
GNU General Public License v3.0
243 stars 34 forks source link

Check file existance after executing pre-build plugins #368

Closed AGraber closed 3 years ago

AGraber commented 4 years ago

I have a use case where I use the plugins field on my build configuration to generate the final files to be built. The problem is that the first time it fails due to the file itself not existing yet - It would exist if the pre-build plugins were executed after it though, which would sound like a valid use case for them:

no such file 'prebuilt\OZ.pwn'

ADRFranklin commented 4 years ago

I might deprecate that field and instead have a pre-build and a post-build section for specifying commands to run.

I think that would be a better solution.

Southclaws commented 4 years ago

The term plugins was always confusing anyway - pre/post build commands makes more sense.