mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-17 07:13:24 +01:00
Remove use of __dirname from main process
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user