From f56969a64b5578f4e05566e0fbee1ff5c9c09f3d Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Thu, 4 Feb 2021 10:29:35 +0200 Subject: [PATCH] Fix snap packaging (#2081) Signed-off-by: Jari Kolehmainen --- .github/release-drafter.yml | 7 +++++-- integration/helpers/utils.ts | 2 +- package.json | 9 ++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 4f61dc9d36..02ae36727e 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -12,6 +12,7 @@ categories: - 'chore' - 'area/ci' - 'area/tests' + - 'dependencies' template: | ## Changes since $PREVIOUS_TAG @@ -20,8 +21,10 @@ template: | ### Download - - [Lens v$RESOLVED_VERSION - Linux](https://snapcraft.io/kontena-lens) - - [AppImage](https://github.com/lensapp/lens/releases/download/v$RESOLVED_VERSION/Lens-$RESOLVED_VERSION.AppImage) + - Lens v$RESOLVED_VERSION - Linux + - [AppImage](https://github.com/lensapp/lens/releases/download/v$RESOLVED_VERSION/Lens-$RESOLVED_VERSION.x86_64.AppImage) + - [DEB](https://github.com/lensapp/lens/releases/download/v$RESOLVED_VERSION/Lens-$RESOLVED_VERSION.amd64.deb) + - [RPM](https://github.com/lensapp/lens/releases/download/v$RESOLVED_VERSION/Lens-$RESOLVED_VERSION.x86_64.rpm) - [Snapcraft](https://snapcraft.io/kontena-lens) - [Lens v$RESOLVED_VERSION - MacOS](https://github.com/lensapp/lens/releases/download/v$RESOLVED_VERSION/Lens-$RESOLVED_VERSION.dmg) - [Lens v$RESOLVED_VERSION - Windows](https://github.com/lensapp/lens/releases/download/v$RESOLVED_VERSION/Lens-Setup-$RESOLVED_VERSION.exe) diff --git a/integration/helpers/utils.ts b/integration/helpers/utils.ts index f7fbac5830..f96c9124e2 100644 --- a/integration/helpers/utils.ts +++ b/integration/helpers/utils.ts @@ -4,7 +4,7 @@ import { exec } from "child_process"; const AppPaths: Partial> = { "win32": "./dist/win-unpacked/Lens.exe", - "linux": "./dist/linux-unpacked/lens", + "linux": "./dist/linux-unpacked/kontena-lens", "darwin": "./dist/mac/Lens.app/Contents/MacOS/Lens", }; diff --git a/package.json b/package.json index 1b060a49d2..13df5b01d2 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,6 @@ ], "linux": { "category": "Network", - "executableName": "lens", "artifactName": "${productName}-${version}.${arch}.${ext}", "target": [ "deb", @@ -162,16 +161,16 @@ "oneClick": false, "allowToChangeInstallationDirectory": true }, + "snap": { + "confinement": "classic" + }, "publish": [ { "provider": "github", "repo": "lens", "owner": "lensapp" } - ], - "snap": { - "confinement": "classic" - } + ] }, "lens": { "extensions": [