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

@@ -6,7 +6,7 @@ import type { AfterPackContext } from 'electron-builder';
import { notarize } from '@electron/notarize';
import { build } from '../util/packageJson.node.js';
import { packageJson } from '../util/packageJson.node.js';
export async function afterSign({
appOutDir,
@@ -22,7 +22,7 @@ export async function afterSign({
const appPath = path.join(appOutDir, `${productFilename}.app`);
const appBundleId = build.appId;
const appBundleId = packageJson.build.appId;
if (!appBundleId) {
throw new Error(
'appBundleId must be provided in package.json: build.appId'