]> khamidou — GitHub mirrors - electron.git/commitdiff
Remove old symbols when generating symbols.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 13 Aug 2014 12:08:07 +0000 (20:08 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 13 Aug 2014 12:08:07 +0000 (20:08 +0800)
script/create-dist.py

index 2a91fd927b6d9f5c052e146498aae95587c7f0da..3c6be9af1e64842e96515f600413edbc198dc81d 100755 (executable)
@@ -207,11 +207,13 @@ def download_libchromiumcontent_symbols(url):
 
 
 def create_symbols():
+  directory = 'Atom-Shell.breakpad.syms'
+  rm_rf(os.path.join(OUT_DIR, directory))
+
   build = os.path.join(SOURCE_ROOT, 'script', 'build.py')
   subprocess.check_output([sys.executable, build, '-c', 'Release',
                            '-t', 'atom_dump_symbols'])
 
-  directory = 'Atom-Shell.breakpad.syms'
   shutil.copytree(os.path.join(OUT_DIR, directory),
                   os.path.join(DIST_DIR, directory),
                   symlinks=True)