Skip to content

Commit 7a1ea2b

Browse files
committed
Improve error when app name is missing
Fixes #54
1 parent c405205 commit 7a1ea2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cli.js

+4
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ async function init() {
7979
}
8080

8181
const appName = appInfo.CFBundleDisplayName || appInfo.CFBundleName;
82+
if (!appName) {
83+
throw new Error('The app must have `CFBundleDisplayName` or `CFBundleName` defined in its `Info.plist`.');
84+
}
85+
8286
const dmgTitle = cli.flags.dmgTitle || appName;
8387
const dmgPath = path.join(destinationPath, `${appName} ${appInfo.CFBundleShortVersionString}.dmg`);
8488

0 commit comments

Comments
 (0)