// Electron 40: Updated to @electron/notarize package
const { notarize } = require('@electron/notarize');

packageTask();
async function packageTask () {
  // Package your app here, and code side with hardened runtime
  await notarize({
    appBundleId: "de.loehnmethode.loehnapplication.mac",
    appPath: "./build_mac/LoehnApp-darwin-x64/LoehnApp.app",
    appleId: "andreas.kotulla@bitsea.de",
    appleIdPassword: "djsq-kfya-jkao-pazi",
    teamId: "2Q64AJUXDK"  // Renamed from ascProvider to teamId
  });
}

// Notarized! Request ID: fbc152d7-aaca-4d6f-a5c9-a2de993a25c5
// Notarized! Request ID: b981b531-cf30-4e3c-b265-2cae37d8f572