Skip to content
Snippets Groups Projects
Commit 8f720b59 authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

CHOP-599: if build.sh creates summary.json, package it with viewer.

Recent versions of the viewer's build-dependent build.sh create and upload a
summary.json file in the top level of the source repository checkout. Bundle
that into the viewer installer. This is the one file that contains the
viewer's version.
parent b9bb792c
No related branches found
No related tags found
No related merge requests found
...@@ -114,6 +114,16 @@ def construct(self): ...@@ -114,6 +114,16 @@ def construct(self):
# Files in the newview/ directory # Files in the newview/ directory
self.path("gpu_table.txt") self.path("gpu_table.txt")
# The summary.json file gets left in the base checkout dir by
# build.sh. It's only created for a build.sh build, therefore we
# have to check whether it exists. :-P
summary_json = "summary.json"
summary_json_path = os.path.join(os.pardir, os.pardir, summary_json)
if os.path.exists(os.path.join(self.get_src_prefix(), summary_json_path)):
self.path(summary_json_path, summary_json)
else:
print "No %s" % os.path.join(self.get_src_prefix(), summary_json_path)
def login_channel(self): def login_channel(self):
"""Channel reported for login and upgrade purposes ONLY; """Channel reported for login and upgrade purposes ONLY;
used for A/B testing""" used for A/B testing"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment