diff --git a/package.json b/package.json index 28031ae3342b..81248373ff71 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "signal-desktop", "productName": "Signal", "description": "Private messaging from your desktop", + "desktopName": "signal-desktop.desktop", "repository": "https://github.com/signalapp/Signal-Desktop.git", "version": "1.25.1-beta.1", "license": "GPL-3.0", diff --git a/prepare_beta_build.js b/prepare_beta_build.js index 01cfb8ba071b..0f9989c41183 100644 --- a/prepare_beta_build.js +++ b/prepare_beta_build.js @@ -38,6 +38,10 @@ const STARTUP_WM_CLASS_PATH = 'build.linux.desktop.StartupWMClass'; const PRODUCTION_STARTUP_WM_CLASS = 'Signal'; const BETA_STARTUP_WM_CLASS = 'Signal Beta'; +const DESKTOP_NAME_PATH = 'desktopName'; +const PRODUCTION_DESKTOP_NAME = `${PRODUCTION_NAME}.desktop`; +const BETA_DESKTOP_NAME = `${BETA_NAME}.desktop`; + // ------- function checkValue(object, objectPath, expected) { @@ -53,6 +57,7 @@ checkValue(packageJson, NAME_PATH, PRODUCTION_NAME); checkValue(packageJson, PRODUCT_NAME_PATH, PRODUCTION_PRODUCT_NAME); checkValue(packageJson, APP_ID_PATH, PRODUCTION_APP_ID); checkValue(packageJson, STARTUP_WM_CLASS_PATH, PRODUCTION_STARTUP_WM_CLASS); +checkValue(packageJson, DESKTOP_NAME_PATH, PRODUCTION_DESKTOP_NAME); // ------- @@ -60,6 +65,7 @@ _.set(packageJson, NAME_PATH, BETA_NAME); _.set(packageJson, PRODUCT_NAME_PATH, BETA_PRODUCT_NAME); _.set(packageJson, APP_ID_PATH, BETA_APP_ID); _.set(packageJson, STARTUP_WM_CLASS_PATH, BETA_STARTUP_WM_CLASS); +_.set(packageJson, DESKTOP_NAME_PATH, BETA_DESKTOP_NAME); // -------