feat: dist building

This commit is contained in:
2026-02-22 18:17:30 +01:00
parent 145b3ea0a6
commit 2d451dc1f0
5 changed files with 195 additions and 53 deletions

30
scripts/notarize.mjs Normal file
View File

@@ -0,0 +1,30 @@
import { notarize } from '@electron/notarize';
export default async function notarizeIfConfigured(context) {
const { electronPlatformName, appOutDir, packager } = context;
if (electronPlatformName !== 'darwin') {
return;
}
const appleId = process.env.APPLE_ID;
const appleIdPassword = process.env.APPLE_APP_SPECIFIC_PASSWORD;
const teamId = process.env.APPLE_TEAM_ID;
if (!appleId || !appleIdPassword || !teamId) {
console.log('[notarize] Skipped: APPLE_ID / APPLE_APP_SPECIFIC_PASSWORD / APPLE_TEAM_ID not set');
return;
}
const appName = packager.appInfo.productFilename;
const appPath = `${appOutDir}/${appName}.app`;
console.log(`[notarize] Submitting ${appPath}`);
await notarize({
appPath,
appleId,
appleIdPassword,
teamId,
});
console.log('[notarize] Completed');
}