Skip to content

Commit

Permalink
chore: fix out_dir usage in upload-symbols.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Sep 28, 2018
1 parent 5576542 commit 37f4058
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
2 changes: 2 additions & 0 deletions script/lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ def get_out_dir():
out_dir = override
return os.path.join(GN_SRC_DIR, 'out', out_dir)

# NOTE: This path is not created by gn, it is used as a scratch zone by our
# upload scripts
def get_dist_dir():
return os.path.join(get_out_dir(), 'gen', 'electron_dist')

Expand Down
2 changes: 0 additions & 2 deletions script/upload-node-headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
from lib.config import PLATFORM, get_target_arch, s3_config
from lib.util import safe_mkdir, scoped_cwd, s3put, get_out_dir, get_dist_dir

# TODO: Update this entire file to point at the correct file names in the out
# directory
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
DIST_DIR = get_dist_dir()
OUT_DIR = get_out_dir()
Expand Down
16 changes: 7 additions & 9 deletions script/upload-symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,24 @@
import sys

from lib.config import PLATFORM, s3_config, enable_verbose_mode
from lib.util import get_electron_branding, execute, rm_rf, safe_mkdir, s3put
from lib.util import get_electron_branding, execute, rm_rf, safe_mkdir, s3put, \
get_out_dir

# TODO: Update this entire file to point at the correct file names in the out
# directory
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
DIST_DIR = os.path.join(SOURCE_ROOT, 'dist')
RELEASE_DIR = os.path.join(SOURCE_ROOT, 'out', 'R')
RELEASE_DIR = get_out_dir()
GEN_DIR = os.path.join(RELEASE_DIR, 'gen')


PROJECT_NAME = get_electron_branding()['project_name']
PRODUCT_NAME = get_electron_branding()['product_name']

if PLATFORM == 'win32':
SYMBOLS_DIR = os.path.join(DIST_DIR, 'symbols')
SYMBOLS_DIR = os.path.join(GEN_DIR, 'symbols')
else:
SYMBOLS_DIR = os.path.join(DIST_DIR, '{0}.breakpad.syms'.format(PROJECT_NAME))
SYMBOLS_DIR = os.path.join(GEN_DIR, '{0}.breakpad.syms'.format(PROJECT_NAME))

PDB_LIST = [
os.path.join(RELEASE_DIR, '{0}.exe.pdb'.format(PROJECT_NAME)),
os.path.join(RELEASE_DIR, 'node.dll.pdb')
os.path.join(RELEASE_DIR, '{0}.exe.pdb'.format(PROJECT_NAME))
]


Expand Down
2 changes: 0 additions & 2 deletions script/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
PDB_NAME = get_zip_name(PROJECT_NAME, ELECTRON_VERSION, 'pdb')


# TODO: Update this entire file to point at the correct file names in the out
# directory
def main():
args = parse_args()
if args.upload_to_s3:
Expand Down

0 comments on commit 37f4058

Please sign in to comment.