Skip to content

Commit

Permalink
buildSnapPackage: use the default snapcraft target (#80217)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sergiusens authored and joaomoreno committed Sep 10, 2019
1 parent e4a4635 commit 51334d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/gulpfile.vscode.linux.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 51334d5

Please sign in to comment.