mirror of
https://github.com/Anil-matcha/Open-Generative-AI.git
synced 2026-05-07 01:17:18 +00:00
11 lines
462 B
JavaScript
11 lines
462 B
JavaScript
import { execSync } from 'child_process';
|
|
import path from 'path';
|
|
|
|
export default async function afterPack({ appOutDir, packager }) {
|
|
if (packager.platform.name !== 'mac') return;
|
|
|
|
const appPath = path.join(appOutDir, `${packager.appInfo.productName}.app`);
|
|
console.log(` • ad-hoc signing path=${appPath}`);
|
|
execSync(`codesign --deep --force --sign - "${appPath}"`, { stdio: 'inherit' });
|
|
console.log(` • ad-hoc signing complete`);
|
|
}
|