diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-10-23 21:22:17 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-10-24 03:04:37 +0300 |
commit | 5aeed2561723dd8099054a61c47f942bb9b3829b (patch) | |
tree | 7ae9b44b65aeabf28a7f6c900c1fffe6247a6eb9 | |
parent | 4d8548aa0653fba8f7a5b83dad7bc4c220046a76 (diff) | |
download | meson-5aeed2561723dd8099054a61c47f942bb9b3829b.zip meson-5aeed2561723dd8099054a61c47f942bb9b3829b.tar.gz meson-5aeed2561723dd8099054a61c47f942bb9b3829b.tar.bz2 |
Remove temp files that the macOS installer builder leaves hanging.
-rwxr-xr-x | packaging/createpkg.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packaging/createpkg.py b/packaging/createpkg.py index 793d4bf..533b3b9 100755 --- a/packaging/createpkg.py +++ b/packaging/createpkg.py @@ -105,6 +105,11 @@ class PkgGenerator: with open(self.distribution_file, 'w') as open_file: open_file.write(doc.toprettyxml()) + def remove_tempfiles(self): + shutil.rmtree('macpkg') + os.unlink('meson-distribution.xml') + os.unlink('meson.pkg') + os.unlink('meson.spec') if __name__ == '__main__': if not os.path.exists('meson.py'): @@ -114,3 +119,4 @@ if __name__ == '__main__': pg = PkgGenerator() pg.build_dist() pg.build_package() + pg.remove_tempfiles() |