Remove use of __dirname from main process

This commit is contained in:
Fedor Indutny
2026-03-27 10:55:37 -07:00
committed by GitHub
parent 70f111e868
commit a048f83dbc
39 changed files with 222 additions and 337 deletions

View File

@@ -5,7 +5,7 @@ import type { BuildResult } 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 afterAllArtifactBuild({
platformToTargets,
@@ -24,7 +24,7 @@ export async function afterAllArtifactBuild({
return;
}
const appBundleId = build.appId;
const appBundleId = packageJson.build.appId;
if (!appBundleId) {
throw new Error(
'appBundleId must be provided in package.json: build.appId'