From a3a2d861ab9e6e3c4bc2ed46b009dfe21bd2ad29 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 22 Aug 2025 20:01:35 +0000 Subject: [PATCH] fix: add deb/rpm target to linux builder --- electron-builder.yaml | 13 +++++++++++-- scripts/electron-builder-wrapper.js | 10 ++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/electron-builder.yaml b/electron-builder.yaml index 21dd187f..1a9863dd 100644 --- a/electron-builder.yaml +++ b/electron-builder.yaml @@ -55,11 +55,20 @@ nsis: oneClick: false # allow user to choose per-user or per-machine artifactName: "Scratch ${version} Setup.${ext}" linux: - target: AppImage + target: + - AppImage + - deb + - rpm executableName: scratch-desktop # Currently Linux builds are supported only for development and have # not been tested in a production environment. - category: development + category: Education # Ensure sandbox permissions are set asarUnpack: - chrome-sandbox + # DEB package specific configuration + icon: buildResources/ScratchDesktop.png + synopsis: Scratch 3 Desktop + description: Scratch 3.0 as a self-contained desktop application + maintainer: "Scratch Foundation " + vendor: "Scratch Foundation" diff --git a/scripts/electron-builder-wrapper.js b/scripts/electron-builder-wrapper.js index 1addc0b3..98e774f3 100644 --- a/scripts/electron-builder-wrapper.js +++ b/scripts/electron-builder-wrapper.js @@ -124,6 +124,14 @@ const calculateTargets = function (wrapperConfig) { linuxAppImage: { name: 'appimage', platform: 'linux' + }, + linuxDeb: { + name: 'deb', + platform: 'linux' + }, + linuxRpm: { + name: 'rpm', + platform: 'linux' } }; const targets = []; @@ -154,6 +162,8 @@ const calculateTargets = function (wrapperConfig) { break; case 'linux': targets.push(availableTargets.linuxAppImage); + targets.push(availableTargets.linuxDeb); + targets.push(availableTargets.linuxRpm); break; default: throw new Error(`Could not determine targets for platform: ${process.platform}`);