updating directories and related functions

This commit is contained in:
Shelley Vohr 2018-09-27 13:14:13 -07:00 committed by Samuel Attard
parent 1c728876e6
commit e66a5f79a2
2 changed files with 34 additions and 26 deletions

View file

@ -305,3 +305,11 @@ def get_out_dir():
def get_dist_dir():
return os.path.join(get_out_dir(), 'gen', 'electron_dist')
def get_electron_exec():
if sys.platform == 'darwin':
return 'out/{0}/Electron.app/Contents/MacOS/Electron'.format(get_out_dir())
elif sys.platform == 'win32':
return 'out/{0}/electron.exe'.format(get_out_dir())
elif sys.platform == 'linux':
return 'out/{0}/electron'.format(get_out_dir())