Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Postbuild hook not working (Read 372 times)
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Postbuild hook not working
Jul 29th, 2021 at 12:29pm
Print Post  
Hi,
I'm trying to use the postbuild hook to run a copy process after the build.
I have the following in my Board.txt:

recipe.hooks.postbuild=cmd.exe /c {build.project_path}\copyme.bat {build.project_path}\version.h {vm.runtime.build.intermediate_output_path}{build.project_name}.bin {build.project_path}\php\bin\ {runtime.tools.mklittlefs.path} {build.project_path}\data

..but the postbuild isn't running.

I can get it to run with the following:
recipe.objcopy.hex.4.pattern=cmd.exe /c {build.project_path}\copyme.bat {build.project_path}\version.h {vm.runtime.build.intermediate_output_path}{build.project_name}.bin {build.project_path}\php\bin\ {runtime.tools.mklittlefs.path} {build.project_path}\data

..but I would feel happier if it was run with the correct command.
  
Back to top
 
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Postbuild hook not working
Reply #1 - Jul 29th, 2021 at 12:34pm
Print Post  
This Topic was moved here from Installation & Troubleshooting [move by] Acuario.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint