2025-03-24 10:19:02 -07:00
|
|
|
// Copyright 2025 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
import { nativeImage } from 'electron';
|
|
|
|
import type { NativeImage } from 'electron';
|
2025-09-16 17:39:03 -07:00
|
|
|
import { join } from 'node:path';
|
2025-03-24 10:19:02 -07:00
|
|
|
|
|
|
|
export function getAppErrorIcon(): NativeImage {
|
|
|
|
const iconPath = join(
|
|
|
|
__dirname,
|
|
|
|
'..',
|
|
|
|
'..',
|
|
|
|
'images',
|
|
|
|
'app-icon-with-error.png'
|
|
|
|
);
|
|
|
|
return nativeImage.createFromPath(iconPath);
|
|
|
|
}
|