forked from boos/BoosAPI
6c51801e50
- Implemented afterPack script to ensure ad-hoc signature for macOS builds. - Created macosSignUtils module to handle app path retrieval, signature inspection, and ad-hoc signing. - Added functions to check if the app is signed and apply ad-hoc signing if necessary.
8 lines
242 B
JavaScript
8 lines
242 B
JavaScript
import { ensureAdHocSignature, getMacAppPath } from './macosSignUtils.mjs';
|
|
|
|
export default async function afterPack(context) {
|
|
if (context.electronPlatformName !== 'darwin') return;
|
|
|
|
await ensureAdHocSignature(getMacAppPath(context));
|
|
}
|