buildSnapPackage: use the default snapcraft target (#80217)

Use the default snap target for snapcraft to create the snap (build is an
intermediate lifecycle step).

Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
This commit is contained in:
Sergio Schvezov 2019-09-10 05:24:40 -03:00 committed by João Moreno
parent e4a4635075
commit 51334d5bd9

View file

@ -238,7 +238,8 @@ function prepareSnapPackage(arch) {
function buildSnapPackage(arch) {
const snapBuildPath = getSnapBuildPath(arch);
return shell.task(`cd ${snapBuildPath} && snapcraft build`);
// Default target for snapcraft runs: pull, build, stage and prime, and finally assembles the snap.
return shell.task(`cd ${snapBuildPath} && snapcraft`);
}
const BUILD_TARGETS = [