export default {
// Debug options for captcha testing
// DEBUG_CAPTCHA_FORCE_TYPE: Set to 'smartcaptcha' or 'turnstile' to override server response
// DEBUG_CAPTCHA_ALWAYS_REQUEST: Set to true to always request from server (ignore cache)
// Example: DEBUG_CAPTCHA_FORCE_TYPE: 'smartcaptcha', DEBUG_CAPTCHA_ALWAYS_REQUEST: true
DEBUG_CAPTCHA_FORCE_TYPE: null,
DEBUG_CAPTCHA_ALWAYS_REQUEST: true,
// We use this url to fetch updates for electron-updater
LAUNCHER_UPDATE_URLS: {
'latest-global': {
main: 'https://cdn.majestic-files.net/launcher/global/',
mirror: 'https://cdn.majestic-files.com/global/',
},
latest: {
main: 'https://cdn.majestic-files.net/launcher/cis/',
mirror: 'https://cdn.majestic-files.com/launcher/cis/',
},
beta: {
main: 'https://cdn.majestic-files.net/launcher/beta/',
mirror: 'https://cdn.majestic-files.com/launcher/beta/',
},
alpha: {
main: 'https://cdn.majestic-files.net/launcher/alpha/',
mirror: 'https://cdn.majestic-files.com/launcher/alpha/',
},
},
API_URL: {
main: 'https://api.majestic-files.net/meta/servers',
mirror: 'https://api.majestic-files.com/meta/servers',
},
API_BASE: {
main: 'https://api.majestic-files.net',
mirror: 'https://api.majestic-files.com',
},
API_BASE_STAGING: 'https://api-staging.majestic-files.com',
API_PROBE_PATH: 'meta/servers',
MODS_API_URL: {
main: 'https://cdn.majestic-files.net/multiplayer/mods/{branch}/list.json',
mirror: 'https://cdn.majestic-files.com/multiplayer/mods/{branch}/list.json',
},
MODS_CATEGORIES_API_URL: {
main: 'https://cdn.majestic-files.net/multiplayer/mods/{branch}/categories.json',
mirror: 'https://cdn.majestic-files.com/multiplayer/mods/{branch}/categories.json',
},
SENTRY_DSN: 'https://dae14fcf80d87859b30159c4683b330f@sentry-majestic.com/4',
SENTRY_ENDPOINT: 'https://sentry-majestic.com/api/9/minidump/?sentry_key=7639a1a9c1ad152fedfd23d2350140d7',
REG_RAGE_PATH: 'HKCU\\SOFTWARE\\RAGE-MP',
REG_MAJESTIC_PATH: 'HKCU\\SOFTWARE\\MAJESTIC-LAUNCHER',
REG_USERDATA_PATH: 'HKCU\\Volatile Environment',
REG_ROCKSTAR: 'HKLM\\SOFTWARE\\WOW6432Node\\Rockstar Games\\Launcher',
// ------- MULTIPLAYER STAFF -------
MP_FILES_FOLDER_NAME: 'Multiplayer',
MODS_FOLDER: 'mods',
MODS_INFO_FILE_NAME: 'mods.bin',
MODS_BIN_DECRYPT_KEY: 'MajesticMods2026_datacryptkey',
PLATFORM_FILES: {
STEAM: 'steam_api64.dll',
EPIC: 'EOSSDK-Win64-Shipping.dll',
RGL: 'GTAVLauncher.exe',
},
LAUNCH_CONFIG_NAME: 'launch-config.json',
GTA5_EXE: 'GTA5.exe',
CLIENT_DLL_NAME: 'majestic-client.dll',
CEF_ENGINE_NAME: 'majestic-webengine.exe',
CONFIG_FILE_NAME: 'majestic.json',
LIB_FOLDER: 'libs',
CEF_FOLDER: 'cef',
CRASH_FOLDER: 'crashdumps',
BACKUP_FOLDER: 'backup',
LOGS_FOLDER: 'logs',
BACKUP_CDN_URLS: {
main: 'https://cdn.majestic-files.net/multiplayer/backup/',
mirror: 'https://cdn.majestic-files.com/multiplayer/backup/',
},
BRANCH_ACCESS_URL: 'https://mp.majestic-files.net/api/public/git-access/verify',
// ---------------------------------
// Например C:\Games. Туда уже попадёт папка CUSTOM_GAME_FOLDER
GENERAL_FOLDER: 'Games',
CUSTOM_GAME_FOLDER: 'MAJESTIC_GTA',
GET_DRIVE_LIST_SCRIPTS: {
WINDOWS:
"Get-PSDrive -PSProvider Filesystem | Where-Object {$_.Used -ne 0 -and $_.Free -ne $null} | Select-Object -property @{Name='Diskname';Expression={$_.name}},@{Name='Free';Expression={$_.Free}} | ConvertTo-Json;",
},
VOLUME: 0.15,
GTA_ASKED: false,
GTA_PLATFORM: '',
MIN_FREE_SPACE_BUFFER: 2 * 1024 * 1024 * 1024, // 2GB
FS_WATERMARK_HDD: 16 * 1024 * 1024, // 16MB для HDD
x2donate: true,
donatePercents: [
{ percent: 1, from: 1000 },
{ percent: 5, from: 2000 },
{ percent: 10, from: 5000 },
{ percent: 20, from: 10000 },
{ percent: 30, from: 25000 },
{ percent: 40, from: 50000 },
],
nickname: '',
userEmail: '',
lang: 'ru',
settings: {
// Main settings
region: { value: 'ru', type: 'region-select', category: 'main' },
language: { value: 'ru', type: 'language-select', category: 'main' },
interfaceVolume: { value: 100, type: 'range', category: 'main' },
multiplayerFolder: { value: 'button', type: 'button', category: 'main', action: 'multiplayerFolder' },
hideAfterBootGame: { value: true, type: 'switch', category: 'main' },
showHiddenServers: { value: false, type: 'switch', category: 'main' },
// Additional settings
changeGTAFolder: { value: 'button', type: 'button', category: 'additional' },
changeMAJESTICFolder: { value: 'button', type: 'button', category: 'additional' },
clearCache: { value: 'button', type: 'button', category: 'additional' },
fixPermissions: { value: 'button', type: 'button', category: 'additional', action: 'fix' },
reverifyFiles: { value: 'button', type: 'button', category: 'additional', action: 'reverifyFiles' },
// Mods settings
enableModSupport: { value: false, type: 'switch', category: 'mods' },
skipModVersionCheck: { value: false, type: 'switch', category: 'mods' },
modsFolder: { value: 'button', type: 'button', category: 'mods', action: 'modsFolder' },
// Developer settings
branch: { value: 'release', type: 'branch-input', category: 'developer' },
cdnToken: { value: '', type: 'token-input', category: 'developer' },
enableDebug: { value: false, type: 'enableDebug-switch', category: 'developer' },
skipBranchCheck: { value: false, type: 'skipBranchCheck-switch', category: 'developer' },
skipServerResourcesCheck: { value: false, type: 'skipServerResourcesCheck-switch', category: 'developer' },
},
permissions: [1, 3, 4], // TODO: Remove after MP-153 is done
FILES_TO_CHECK_AND_DOWNLOAD: [
{
url: {
main: 'https://cdn.majestic-files.net/multiplayer/client/{branch}/x64_win32/',
mirror: 'https://cdn.majestic-files.com/multiplayer/client/{branch}/x64_win32/', //TEMP made like this, make normal after
},
file: 'update.json',
},
],
CLIENT_MODS_FILE_TO_DOWNLOAD: {
url: {
main: 'https://cdn.majestic-files.net/multiplayer/mods/{branch}/{modId}/',
mirror: 'https://cdn.majestic-files.com/multiplayer/mods/{branch}/{modId}/', //TEMP made like this, make normal after
},
file: 'info.json',
},
HTTP_DOWNLOAD_HEADERS: {
'User-Agent': 'MajesticPublicAgent',
Connection: 'keep-alive',
},
MP_DOWNLOAD_HEADERS: {
'User-Agent': 'MajesticPublicAgent',
Connection: 'keep-alive',
},
//#region ACCOUNT ENDPOINTS
//#region AUTH
//#region GENERAL
CAPTCHA_TYPE_URL: 'id/captcha-type',
//#endregion
//#region CHECK
AUTH_TOKEN_VERIFY_URL: 'id/token/verify',
AUTH_TOKEN_REFRESH_URL: 'id/token/refresh',
//#endregion
//#region SIGN IN
AUTH_LOGIN_URL: 'id/token/login',
AUTH_LOGIN_RESEND_CODE_URL: 'id/login/resend-code',
//#endregion
//#region SIGN UP
AUTH_REGISTER_URL: 'id/registration',
AUTH_EMAIL_CONFIRMATION_URL: 'id/email-confirmation',
AUTH_EMAIL_CONFIRMATION_RESEND_URL: 'id/email-confirmation/resend',
AUTH_EMAIL_CHECK_AVAILABILITY_URL: 'id/registration/check-availability',
//#endregion
//#region RESET
AUTH_PASSWORD_RESET_REQUEST_URL: 'id/password/reset/request',
AUTH_PASSWORD_RESET_CONFIRM_URL: 'id/password/reset/confirm',
//#endregion
//#endregion
//#region PROFILE
ACCOUNT_PROFILE_URL: 'id',
ACCOUNT_PROFILE_LOGOUT_URL: 'id/logout',
//#region SECURE
ACCOUNT_PROFILE_SECURE_EMAIL_CHANGE_REQUEST_URL: 'id/email/change/request',
ACCOUNT_PROFILE_SECURE_EMAIL_CHANGE_CONFIRM_URL: 'id/email/change/confirm',
ACCOUNT_PROFILE_SECURE_PASSWORD_CHANGE_URL: 'id/password/change',
ACCOUNT_PROFILE_SECURE_TOTP_ENABLE_URL: 'id/totp/enable',
ACCOUNT_PROFILE_SECURE_TOTP_CONFIRM_URL: 'id/totp/confirm',
ACCOUNT_PROFILE_SECURE_TOTP_DISABLE_URL: 'id/totp/disable',
//#endregion
//#region AUTH_HISTORY
ACCOUNT_PROFILE_AUTH_HISTORY_URL: 'id/login/history',
//#endregion
//#region TRUSTED_DEVICES
ACCOUNT_PROFILE_TRUSTED_DEVICES_URL: 'id/trusted-devices',
//#endregion
//#endregion
//#endregion
};