2021-12-09 16:25:14 +00:00
|
|
|
const { releaseChannel } = require('./utils/buildInfo');
|
|
|
|
|
2022-04-04 14:41:49 +00:00
|
|
|
const titleCase = s => s[0].toUpperCase() + s.slice(1);
|
2021-12-09 16:25:14 +00:00
|
|
|
|
2022-01-28 18:59:14 +00:00
|
|
|
const appNameSuffix = releaseChannel === 'stable' ? '' : titleCase(releaseChannel);
|
2021-12-09 16:25:14 +00:00
|
|
|
const APP_NAME = 'Discord' + appNameSuffix;
|
2022-01-28 18:59:14 +00:00
|
|
|
|
2021-12-09 16:25:14 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2022-01-28 18:59:14 +00:00
|
|
|
APP_COMPANY: 'Discord Inc',
|
|
|
|
APP_DESCRIPTION: 'Discord - https://discord.com',
|
2021-12-09 16:25:14 +00:00
|
|
|
APP_NAME,
|
2022-01-28 18:59:14 +00:00
|
|
|
APP_NAME_FOR_HUMANS: 'Discord' + (appNameSuffix !== '' ? ' ' + appNameSuffix : ''),
|
|
|
|
APP_ID: [ 'com', 'squirrel', APP_NAME, APP_NAME ].join('.'),
|
|
|
|
APP_PROTOCOL: 'Discord',
|
|
|
|
API_ENDPOINT: settings.get('API_ENDPOINT') || 'https://discord.com/api',
|
|
|
|
NEW_UPDATE_ENDPOINT: settings.get('NEW_UPDATE_ENDPOINT') || 'https://discord.com/api/updates/',
|
|
|
|
UPDATE_ENDPOINT: settings.get('UPDATE_ENDPOINT') || 'https://discord.com/api'
|
2021-12-09 16:25:14 +00:00
|
|
|
};
|