migu/buildResources/notarize.js
ThaUnknown 0b92faf27e chore: update dependenices
chore: update electron
fix: button yellow color
feat: more descriptive RSS errors
feat: arabic lang selections
fix: status changing with autocomplete disabled
fix: episode list not showing
fix: w2g lobbies getting wiped
2023-07-18 13:51:08 +02:00

30 lines
960 B
JavaScript

const { notarize } = require('@electron/notarize')
const path = require('path')
exports.default = async function notarizing (context) {
if (context.electronPlatformName !== 'darwin' || process.env.CSC_IDENTITY_AUTO_DISCOVERY === 'false') {
console.log('Skipping notarization')
return
}
console.log('Notarizing...')
const appBundleId = context.packager.appInfo.info._configuration.appId
const appName = context.packager.appInfo.productFilename
const appPath = path.normalize(path.join(context.appOutDir, `${appName}.app`))
const appleId = process.env.APPLE_ID
const appleIdPassword = process.env.APPLE_ID_PASSWORD
if (!appleId) {
console.warn('Not notarizing: Missing APPLE_ID environment variable')
return
}
if (!appleIdPassword) {
console.warn('Not notarizing: Missing APPLE_ID_PASSWORD environment variable')
return
}
return notarize({
appBundleId,
appPath,
appleId,
appleIdPassword
})
}