Add Categories tag to AppImage .desktop file.
[dcpomatic.git] / cscript
diff --git a/cscript b/cscript
index beb0815ffd8d9da81adaab45f4c76dc5b2fa97c4..8dfb716e00b7a3fa2edd5c549dfff238ca7f5fe8 100644 (file)
--- a/cscript
+++ b/cscript
@@ -338,7 +338,7 @@ def dependencies(target):
     return deps
 
 def option_defaults():
-    return { "gui": True }
+    return { "player-only": "False", "gui": True, "variant": None }
 
 def configure_options(target, options):
     opt = ''
@@ -366,6 +366,9 @@ def configure_options(target, options):
     if options['player-only']:
         opt += ' --player-only'
 
+    if options['variant'] is not None:
+        opt += ' --variant=%s' % options['variant']
+
     # Build Windows debug versions with static linking as I think gdb works better then
     if target.debug and target.platform == 'windows':
         opt += ' --static-dcpomatic'
@@ -597,6 +600,7 @@ def make_appimage(target, nice_name, internal_name, version):
     with open('build/%s.AppDir/%s.desktop' % (nice_filename, internal_name), 'w') as f:
         print('[Desktop Entry]', file=f)
         print('Type=Application', file=f)
+        print('Categories=AudioVideo', file=f)
         print('Name=%s' % nice_name, file=f)
         print('Icon=%s' % internal_name, file=f)
     target.command('cp graphics/linux/256/%s.png build/%s.AppDir' % (internal_name, nice_filename))