You can use the override-build
section in your part. This lets you add additional commands to the default build process for your part.
The simplest no change override-build
section is:
parts:
partname:
...
override-build: |
snapcraftctl build
This is replacing the build step of the part with a request for Snapcraft to run the default build step. If you place some additional commands before snapcraftctl build
, then they will be run before the default build commands.