From e26d31027b267a0f044e243ccf533c324e35166c Mon Sep 17 00:00:00 2001 From: Bruno Bernardino Date: Wed, 27 Jul 2022 10:10:23 +0100 Subject: [PATCH 1/2] Fix publishing snap in GitHub release This should allow the built snap to be uploaded to the GH release. It was built in https://github.com/padloc/padloc/runs/7500288391?check_suite_focus=true but never published. The public snap listing is now available in https://snapcraft.io/padloc with the amd64 version. --- packages/electron/prepare-build.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/electron/prepare-build.js b/packages/electron/prepare-build.js index b222906f..a57af50f 100644 --- a/packages/electron/prepare-build.js +++ b/packages/electron/prepare-build.js @@ -58,6 +58,7 @@ async function main() { linux: { target: ["AppImage", "snap", "deb", "dir"], category: "Utility", + publish: ["github"], }, snap: { confinement: "strict", From 23a18a2736a8bd9853d6bb46c259338b82e118f4 Mon Sep 17 00:00:00 2001 From: Bruno Bernardino Date: Wed, 27 Jul 2022 10:20:23 +0100 Subject: [PATCH 2/2] Make the publish specific to snap, as it's the only one that needs to be overridden, really. --- packages/electron/prepare-build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/electron/prepare-build.js b/packages/electron/prepare-build.js index a57af50f..0e6a298e 100644 --- a/packages/electron/prepare-build.js +++ b/packages/electron/prepare-build.js @@ -58,11 +58,11 @@ async function main() { linux: { target: ["AppImage", "snap", "deb", "dir"], category: "Utility", - publish: ["github"], }, snap: { confinement: "strict", plugs: ["desktop", "home", "browser-support", "network", "opengl", "x11", "wayland", "unity7"], + publish: ["github"], }, afterSign: "scripts/notarize.js", };