Dispatch correct packaging flavor for VR builds

This commit is contained in:
Manish Goregaokar 2018-11-28 14:22:06 -08:00
parent bdaf50e309
commit 2625950ac2

View file

@ -564,8 +564,13 @@ class MachCommands(CommandBase):
# Do some additional things if the build succeeded
if status == 0:
if android and not no_package:
flavor = None
if "googlevr" in features:
flavor = "googlevr"
elif "oculusvr" in features:
flavor = "oculusvr"
rv = Registrar.dispatch("package", context=self.context,
release=release, dev=dev, target=target)
release=release, dev=dev, target=target, flavor=flavor)
if rv:
return rv