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

@@ -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'