How to package my slicer app at every day 21:00 by a script

all i know to package slicer app is to generate PACKAGE project
is there a way to package slicer app by a script ? in that way i can package slicer app every night after work , and test Engineer can get the app every morning .

On Windows, we use the built-in Task Scheduler for this.

If you want to just update Slicer and create a package then putting the two commands that build ALL_BUILD and PACKAGE targets should be sufficient.

If you want more complete solution - run all tests, report results to dashboard, build all extensions, etc. - then you can adapt the scripts that official Slicer build machines use.

1 Like

thanks lassoan,we will learn the scripts you suggested
we alreay have the ALL_BUILD and PACKAGE project, how to call the PACKAGE project in Window built-in Task Scheduler?

You can build the ALL_BUILD target with a command like this:

"c:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\MSBuild.exe" ALL_BUILD.vcxproj /p:Configuration=Release

You can put all the build commands in a .bat file and run it using the Task Scheduler. Using the Task Scheduler is straightforward and is also widely documented on the web.

1 Like

thank you very much
@lassoan it works , i think i can have a good dream tonight!