Once task/package has been implemented, ensure that the task/build script runs meson build --prefix=/usr again if necessary as, otherwise, you get the following error if you run task/build after task/package:
~/Projects/elementary/comet/build ~/Projects/elementary/comet
ninja: error: loading 'build.ninja': No such file or directory
So check for this in the task/run and task/build scripts and reconfigure meson if you detect that the build.ninja file doesn’t exist. e.g.,
# The ninja build file may be missing if the
# person ran a flatpak build before running this script.
# If so, reconfigure meson.
if [[ ! -f build/build.ninja ]]; then
meson build --prefix=/usr
fi
Once
task/package
has been implemented, ensure that thetask/build
script runsmeson build --prefix=/usr
again if necessary as, otherwise, you get the following error if you runtask/build
aftertask/package
:So check for this in the
task/run
andtask/build
scripts and reconfigure meson if you detect that thebuild.ninja
file doesn’t exist. e.g.,