Set LSApplicationCategoryType to public.app-category.games for macOS apps
By default Electron uses the developer tools category Most packaged projects are games In the future, this should be configurable
This commit is contained in:
1 parent
1457bd7c92
commit
65ee813d0b
1 file changed
+8
-1
@@ -143,6 +143,10 @@ const CFBundleExecutable = 'CFBundleExecutable';
|
||||
const CFBundleVersion = 'CFBundleVersion';
|
||||
const CFBundleShortVersionString = 'CFBundleShortVersionString';
|
||||
|
||||
// Describes the category of the app
|
||||
// https://developer.apple.com/documentation/bundleresources/information_property_list/lsapplicationcategorytype
|
||||
const LSApplicationCategoryType = 'LSApplicationCategoryType';
|
||||
|
||||
class Packager extends EventTarget {
|
||||
constructor () {
|
||||
super();
|
||||
@@ -276,7 +280,10 @@ class Packager extends EventTarget {
|
||||
|
||||
// For simplicity, we'll set these to the same thing
|
||||
[CFBundleVersion]: this.options.app.version,
|
||||
[CFBundleShortVersionString]: this.options.app.version,
|
||||
[CFBundleShortVersionString]: this.options.app.version,
|
||||
|
||||
// Most items generated by the packager are games
|
||||
[LSApplicationCategoryType]: 'public.app-category.games'
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user