From: Cheng Zhao Date: Fri, 17 Apr 2015 07:53:46 +0000 (+0800) Subject: Fix upload.py for the rename X-Git-Tag: v0.24.0 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=96c886a8f03f796a73769344c0d72a2385191fe7;p=electron.git Fix upload.py for the rename --- diff --git a/script/upload.py b/script/upload.py index ffbc5880..040d1650 100755 --- a/script/upload.py +++ b/script/upload.py @@ -102,12 +102,14 @@ def parse_args(): def get_atom_shell_build_version(): if PLATFORM == 'darwin': - atom_shell = os.path.join(SOURCE_ROOT, 'out', 'R', 'Atom.app', - 'Contents', 'MacOS', 'Atom') + atom_shell = os.path.join(SOURCE_ROOT, 'out', 'R', + '{0}.app'.format(PRODUCT_NAME), 'Contents', + 'MacOS', PRODUCT_NAME) elif PLATFORM == 'win32': - atom_shell = os.path.join(SOURCE_ROOT, 'out', 'R', 'atom.exe') + atom_shell = os.path.join(SOURCE_ROOT, 'out', 'R', + '{0}.exe'.format(PROJECT_NAME)) else: - atom_shell = os.path.join(SOURCE_ROOT, 'out', 'R', 'atom') + atom_shell = os.path.join(SOURCE_ROOT, 'out', 'R', PROJECT_NAME) return subprocess.check_output([atom_shell, '--version']).strip()