From cde05c094353250ddb2309ed6b4b81cb788ed1dd Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 11 Jun 2020 15:29:26 +0800 Subject: [PATCH] Mention the DMG filename in the completed message Fixes #55 --- cli.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli.js b/cli.js index 7ae62ad..f5cf5ad 100755 --- a/cli.js +++ b/cli.js @@ -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);