2022-04-22 16:16:25 +00:00
|
|
|
const p = 'Discord'; // Product name
|
|
|
|
const d = 'https://discord.com'; // Domain
|
|
|
|
|
2022-04-21 21:59:01 +00:00
|
|
|
const r = releaseChannel; // Release channel
|
|
|
|
const s = r === 'stable' ? '' : (r[0].toUpperCase() + r.slice(1)); // Suffix per release channel (stable = blank, canary = Canary, etc)
|
2022-04-22 16:16:25 +00:00
|
|
|
const n = p + s; // Name as Discord<Channel> (if not stable)
|
2022-01-28 18:59:14 +00:00
|
|
|
|
2021-12-09 16:25:14 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2022-04-22 16:19:51 +00:00
|
|
|
APP_COMPANY: p + ' Inc',
|
2022-04-22 16:16:25 +00:00
|
|
|
APP_DESCRIPTION: p + ' - ' + d,
|
2022-04-21 21:59:01 +00:00
|
|
|
APP_NAME: n,
|
2022-04-22 16:22:34 +00:00
|
|
|
APP_NAME_FOR_HUMANS: (p + ' ' + s).trim(),
|
2022-04-21 21:59:01 +00:00
|
|
|
APP_ID: [ 'com', 'squirrel', n, n ].join('.'),
|
2022-04-22 16:16:25 +00:00
|
|
|
APP_PROTOCOL: p,
|
|
|
|
API_ENDPOINT: settings.get('API_ENDPOINT') || (d + '/api'),
|
|
|
|
NEW_UPDATE_ENDPOINT: settings.get('NEW_UPDATE_ENDPOINT') || (d + '/api/updates/'),
|
|
|
|
UPDATE_ENDPOINT: settings.get('UPDATE_ENDPOINT') || (d + '/api')
|
2021-12-09 16:25:14 +00:00
|
|
|
};
|