From 90a42d66cf19f3dad87233547b3c118900f40545 Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Fri, 16 Apr 2021 10:41:46 +0300 Subject: [PATCH] tweak Signed-off-by: Jari Kolehmainen --- Makefile | 5 +++-- build/package.json.patch | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 build/package.json.patch diff --git a/Makefile b/Makefile index b5a652a51b..cdbcc94f85 100644 --- a/Makefile +++ b/Makefile @@ -65,10 +65,11 @@ integration-win: binaries/client build-extension-types build-extensions .PHONY: build build: node_modules binaries/client build-extensions + yarn run compile ifeq "$(DETECTED_OS)" "Windows" - yarn dist:win + ./node_modules/.bin/electron-builder --publish onTag --x64 --ia32 else - yarn dist + ./node_modules/.bin/electron-builder --publish onTag endif $(extension_node_modules): diff --git a/build/package.json.patch b/build/package.json.patch new file mode 100644 index 0000000000..41442c6f26 --- /dev/null +++ b/build/package.json.patch @@ -0,0 +1,40 @@ +diff --git a/package.json b/package.json +index 749365aa8..a8395ffba 100644 +--- a/package.json ++++ b/package.json +@@ -1,7 +1,7 @@ + { +- "name": "open-lens", +- "productName": "OpenLens", +- "description": "OpenLens - The Kubernetes IDE", ++ "name": "lens", ++ "productName": "Lens", ++ "description": "Lens - The Kubernetes IDE", + "version": "5.0.0-alpha.1", + "main": "static/build/main.js", + "copyright": "© 2021, Mirantis, Inc.", +@@ -107,6 +107,7 @@ + "target": [ + "deb", + "rpm", ++ "snap", + "AppImage" + ], + "extraResources": [ +@@ -160,6 +161,16 @@ + "oneClick": false, + "allowToChangeInstallationDirectory": true + }, ++ "snap": { ++ "confinement": "classic" ++ }, ++ "publish": [ ++ { ++ "provider": "s3", ++ "bucket": "lens-binaries", ++ "path": "/ide" ++ } ++ ], + "protocols": { + "name": "Lens Protocol Handler", + "schemes": [