diff options
author | Florian Bruhin <git@the-compiler.org> | 2017-07-04 21:03:55 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2017-07-04 21:03:55 +0200 |
commit | d96403fe93713c589f88d0894cda6f5f490f82af (patch) | |
tree | 2bf0979517ec83d82c00243a4676242a3f9eb3dc | |
parent | 2df9508e44cd6839075c7be725fb13ced4563a08 (diff) | |
download | qutebrowser-d96403fe93713c589f88d0894cda6f5f490f82af.tar.gz qutebrowser-d96403fe93713c589f88d0894cda6f5f490f82af.zip |
build_release: Clean up before doing stuff
So we can inspect the results later.
-rwxr-xr-x | scripts/dev/build_release.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py index 9190a8801..148266d21 100755 --- a/scripts/dev/build_release.py +++ b/scripts/dev/build_release.py @@ -124,6 +124,14 @@ def patch_osx_app(): def build_osx(): """Build OS X .dmg/.app.""" + utils.print_title("Cleaning up...") + for f in ['wc.dmg', 'template.dmg']: + try: + os.remove(f) + except FileNotFoundError: + pass + for d in ['dist', 'build']: + shutil.rmtree(d, ignore_errors=True) utils.print_title("Updating 3rdparty content") # update_3rdparty.run(ace=False, pdfjs=True, fancy_dmg=False) utils.print_title("Building .app via pyinstaller") @@ -132,11 +140,6 @@ def build_osx(): patch_osx_app() utils.print_title("Building .dmg") subprocess.check_call(['make', '-f', 'scripts/dev/Makefile-dmg']) - utils.print_title("Cleaning up...") - for f in ['wc.dmg', 'template.dmg']: - os.remove(f) - for d in ['dist', 'build']: - shutil.rmtree(d) dmg_name = 'qutebrowser-{}.dmg'.format(qutebrowser.__version__) os.rename('qutebrowser.dmg', dmg_name) |