From 96c886a8f03f796a73769344c0d72a2385191fe7 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 17 Apr 2015 15:53:46 +0800 Subject: [PATCH] Fix upload.py for the rename --- script/upload.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/script/upload.py b/script/upload.py index ffbc58801f6b..040d1650110b 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()