move appName appPath up

This commit is contained in:
Kyle Spearrin 2020-09-22 17:02:33 -04:00
parent c5250adf53
commit a565925b8f
2 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,9 @@ on:
branches-ignore:
- 'l10n_master'
- 'gh-pages'
release:
types:
- published
jobs:
build:

View File

@ -7,12 +7,12 @@ async function run(context) {
console.log('## After sign');
// console.log(context);
const appName = context.packager.appInfo.productFilename;
const appPath = `${context.appOutDir}/${appName}.app`;
const macBuild = context.electronPlatformName === 'darwin';
if (macBuild) {
console.log('### Notarizing ' + appPath);
const appName = context.packager.appInfo.productFilename;
const appPath = `${context.appOutDir}/${appName}.app`;
const appleId = process.env.APPLE_ID_USERNAME || process.env.APPLEID;
const appleIdPassword = process.env.APPLE_ID_PASSWORD || `@keychain:AC_PASSWORD`;
return await notarize({