build: don't ship pdf_viewer_resources.pak when feature flag is disabled
This commit is contained in:
parent
1cc5492784
commit
3c76cc21ec
2 changed files with 14 additions and 3 deletions
|
@ -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%']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue