mirror of
https://github.com/electron/electron.git
synced 2026-02-03 19:55:43 -05:00
move pdf viewer behind feature flag
This commit is contained in:
committed by
Aleksei Kuzmin
parent
c1908147a9
commit
4b39d17e5f
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user