Fix thinko in cscript option defaults.
[dcpomatic.git] / cscript
diff --git a/cscript b/cscript
index 0cfc31edbf5801a46d1177b95e193cff674d4f6b..a2a23d3b7ad0478b62f324dcf7cf71b22dd4fba6 100644 (file)
--- a/cscript
+++ b/cscript
@@ -331,14 +331,14 @@ def dependencies(target):
         # Use distro-provided FFmpeg on Arch
         deps = []
 
-    deps.append(('libdcp', '6fef005'))
-    deps.append(('libsub', '32b8463'))
+    deps.append(('libdcp', 'ee05b1c'))
+    deps.append(('libsub', '1cf5cdf'))
     deps.append(('rtaudio-cdist', '739969e'))
 
     return deps
 
 def option_defaults():
-    return { "gui": True }
+    return { "player-only": False, "gui": True, "variant": None }
 
 def configure_options(target, options):
     opt = ''
@@ -363,6 +363,12 @@ def configure_options(target, options):
     if not options['gui']:
         opt += ' --disable-gui'
 
+    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'
@@ -594,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))