From 0c506a17682f184641e0a653e32834146c1ba9ca Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Thu, 5 Sep 2024 15:41:04 -0700 Subject: [PATCH] Make exe name match package name (#328) This changes the executable name on all platforms to the lowercase package name, which should make symlinking easier. It also updates the package naming on Linux to be more consistent with the expectations of the Linux package managers. This should address https://github.com/wavetermdev/waveterm/issues/689 --- electron-builder.config.cjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electron-builder.config.cjs b/electron-builder.config.cjs index 75fae151..0e02d5c3 100644 --- a/electron-builder.config.cjs +++ b/electron-builder.config.cjs @@ -9,6 +9,7 @@ const path = require("path"); const config = { appId: pkg.build.appId, productName: pkg.productName, + executableName: pkg.name, artifactName: "${productName}-${platform}-${arch}-${version}.${ext}", npmRebuild: false, nodeGypRebuild: false, @@ -64,7 +65,7 @@ const config = { .filter((path) => path), }, linux: { - executableName: pkg.productName, + artifactName: "${name}-${platform}-${arch}-${version}.${ext}", category: "TerminalEmulator", icon: "build/icons.icns", target: ["zip", "deb", "rpm", "AppImage", "pacman"],