Mention the DMG filename in the completed message

Fixes #55
This commit is contained in:
Sindre Sorhus 2020-06-11 15:29:26 +08:00
parent 620403cb2d
commit cde05c0943
1 changed files with 3 additions and 2 deletions

5
cli.js
View File

@ -84,7 +84,8 @@ async function init() {
}
const dmgTitle = cli.flags.dmgTitle || appName;
const dmgPath = path.join(destinationPath, `${appName} ${appInfo.CFBundleShortVersionString}.dmg`);
const dmgFilename = `${appName} ${appInfo.CFBundleShortVersionString}.dmg`;
const dmgPath = path.join(destinationPath, dmgFilename);
if (dmgTitle > 27) {
ora.fail('The disk image title cannot exceed 27 characters. This is a limitation in a dependency: https://github.com/LinusU/node-alias/issues/7');
@ -189,7 +190,7 @@ async function init() {
}
ora.info(`Code signing identity: ${match[1]}`).start();
ora.succeed('DMG created');
ora.succeed(`Created “${dmgFilename}`);
} catch (error) {
ora.fail(`Code signing failed. The DMG is fine, just not code signed.\n${Object.prototype.hasOwnProperty.call(error, 'stderr') ? error.stderr.trim() : error}`);
process.exit(2);