mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
updating directories and related functions
This commit is contained in:
committed by
Samuel Attard
parent
1c728876e6
commit
e66a5f79a2
@@ -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())
|
||||
Reference in New Issue
Block a user