Remove use of __dirname from main process

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-03-27 13:42:15 -05:00
committed by GitHub
parent 1e1f17a36b
commit cbe7b9bd1a
39 changed files with 222 additions and 337 deletions

View File

@@ -1,6 +1,7 @@
// Copyright 2018 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { join } from 'node:path';
import { assert } from 'chai';
import { stub } from 'sinon';
import type { MenuItemConstructorOptions } from 'electron';
@@ -214,6 +215,7 @@ describe('createTemplate', () => {
};
const { i18n } = loadLocale({
rootDir: join(__dirname, '..', '..', '..'),
hourCyclePreference: HourCyclePreference.UnknownPreference,
isPackaged: false,
localeDirectionTestingOverride: null,