move pdf viewer behind feature flag

This commit is contained in:
deepak1556
2018-03-15 17:51:48 +09:00
committed by Aleksei Kuzmin
parent c1908147a9
commit 4b39d17e5f
21 changed files with 159 additions and 63 deletions

View File

@@ -28,6 +28,7 @@ SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
PROJECT_NAME = electron_gyp()['project_name%']
PRODUCT_NAME = electron_gyp()['product_name%']
PDF_VIEWER_ENABLED = electron_gyp()['enable_pdf_viewer%']
def main():
@@ -35,6 +36,7 @@ def main():
args = parse_args()
config = args.configuration
os.environ['PDF_VIEWER_ENABLED'] = str(PDF_VIEWER_ENABLED)
if args.verbose:
enable_verbose_mode()