Skip to content

Commit

Permalink
fix(snap): Snap builds do not have architectures key
Browse files Browse the repository at this point in the history
Close #2596
  • Loading branch information
develar committed Feb 20, 2018
1 parent 24f2565 commit f799062
Show file tree
Hide file tree
Showing 7 changed files with 162 additions and 130 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"////": "All typings are added into root `package.json` to avoid duplication errors in the IDE compiler (several `node.d.ts` files).",
"dependencies": {
"7zip-bin": "~3.1.0",
"app-builder-bin": "1.3.5",
"app-builder-bin": "1.3.6",
"archiver": "^2.1.1",
"async-exit-hook": "^2.0.1",
"aws-sdk": "^2.197.0",
"aws-sdk": "^2.198.0",
"bluebird-lst": "^1.0.5",
"chalk": "^2.3.0",
"chromium-pickle-js": "^0.2.0",
Expand Down Expand Up @@ -95,7 +95,7 @@
"gitbook-plugin-github": "^2.0.0",
"gitbook-plugin-github-buttons": "^3.0.0",
"globby": "^8.0.1",
"jest-cli": "^22.3.0",
"jest-cli": "^22.4.0",
"jest-junit": "^3.6.0",
"jsdoc-to-markdown": "^4.0.1",
"path-sort": "^0.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/builder-util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"out"
],
"dependencies": {
"app-builder-bin": "1.3.5",
"app-builder-bin": "1.3.6",
"temp-file": "^3.1.1",
"fs-extra-p": "^4.5.2",
"is-ci": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-builder-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"homepage": "https://github.com/electron-userland/electron-builder",
"dependencies": {
"7zip-bin": "~3.1.0",
"app-builder-bin": "1.3.5",
"app-builder-bin": "1.3.6",
"async-exit-hook": "^2.0.1",
"bluebird-lst": "^1.0.5",
"chromium-pickle-js": "^0.2.0",
Expand Down
1 change: 1 addition & 0 deletions packages/electron-builder-lib/src/targets/snap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default class SnapTarget extends Target {
description: this.helper.getDescription(options),
confinement: options.confinement || "strict",
grade: options.grade || "stable",
architectures: [toLinuxArchString(arch)],
apps: {
[snapName]: {
command: `bin/desktop-launch $SNAP/app/${this.packager.executableName}`,
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-publisher-s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"dependencies": {
"fs-extra-p": "^4.5.2",
"aws-sdk": "^2.197.0",
"aws-sdk": "^2.198.0",
"mime": "^2.2.0",
"electron-publish": "~0.0.0-semantic-release",
"builder-util": "^0.0.0-semantic-release",
Expand Down
24 changes: 24 additions & 0 deletions test/out/linux/__snapshots__/snapTest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ Object {
],
},
},
"architectures": Array [
"amd64",
],
"confinement": "strict",
"description": "Test Application (test quite “ #378)",
"grade": "stable",
Expand Down Expand Up @@ -91,6 +94,9 @@ Object {
],
},
},
"architectures": Array [
"amd64",
],
"confinement": "strict",
"description": "Test Application (test quite “ #378)",
"grade": "stable",
Expand Down Expand Up @@ -131,6 +137,9 @@ Object {
],
},
},
"architectures": Array [
"amd64",
],
"confinement": "classic",
"description": "Test Application (test quite “ #378)",
"grade": "stable",
Expand Down Expand Up @@ -192,6 +201,9 @@ Object {
],
},
},
"architectures": Array [
"amd64",
],
"confinement": "classic",
"description": "Test Application (test quite “ #378)",
"grade": "stable",
Expand Down Expand Up @@ -254,6 +266,9 @@ Object {
],
},
},
"architectures": Array [
"amd64",
],
"confinement": "classic",
"description": "Test Application (test quite “ #378)",
"grade": "stable",
Expand Down Expand Up @@ -317,6 +332,9 @@ Object {
],
},
},
"architectures": Array [
"amd64",
],
"confinement": "classic",
"description": "Test Application (test quite “ #378)",
"grade": "stable",
Expand Down Expand Up @@ -371,6 +389,9 @@ Object {
],
},
},
"architectures": Array [
"amd64",
],
"confinement": "strict",
"description": "Test Application (test quite “ #378)",
"grade": "stable",
Expand Down Expand Up @@ -429,6 +450,9 @@ Object {
],
},
},
"architectures": Array [
"amd64",
],
"confinement": "strict",
"description": "Test Application (test quite “ #378)",
"grade": "stable",
Expand Down
Loading

0 comments on commit f799062

Please sign in to comment.