aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-10-23 21:22:17 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-10-23 21:22:17 +0300
commitb395871f1c088bbeef3a9f4137b7700962a40412 (patch)
treef96b73363f17bb270a36e12cd141cf7d8d8cb47d
parent034b3a92d97bf688be2aba5e5acfcc1e774b83e3 (diff)
downloadmeson-macpkgclean.zip
meson-macpkgclean.tar.gz
meson-macpkgclean.tar.bz2
Remove temp files that the macOS installer builder leaves hanging.macpkgclean
-rwxr-xr-xpackaging/createpkg.py6
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()