build: don't ship pdf_viewer_resources.pak when feature flag is disabled

This commit is contained in:
deepak1556 2018-05-11 16:00:43 +05:30
parent 1cc5492784
commit 3c76cc21ec
2 changed files with 14 additions and 3 deletions

View file

@ -193,6 +193,12 @@ def electron_gyp():
obj = eval(f.read());
return obj['variables']
def electron_features():
SOURCE_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', '..'))
gyp = os.path.join(SOURCE_ROOT, 'features.gypi')
with open(gyp) as f:
obj = eval(f.read());
return obj['variables']['variables']
def get_electron_version():
return 'v' + electron_gyp()['version%']