Add desktopName to package.json to fix linux badge (#3390)
This commit is contained in:
parent
277780360c
commit
9376dba806
2 changed files with 7 additions and 0 deletions
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
|
||||
// -------
|
||||
|
||||
|
|
Loading…
Reference in a new issue