Corretto unpacking dei tarball.

This commit is contained in:
Emiliano Vavassori 2022-03-19 22:53:52 +01:00
parent d4d279991a
commit 18f06aedff
1 changed files with 3 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class Build(object):
# Unpacking the tarballs
for archive in buildtarballs:
subprocess.run("tar xzf ../%s.tar.gz" % archive, shell=True)
subprocess.run("tar xzf ../%s" % archive, shell=True)
# At this point, let's decompress the deb packages
os.chdir(os.path.join(self.__builddir__, self.__appname__, self.__appname__ + '.AppImage'))
@ -108,11 +108,12 @@ class Build(object):
# Copying built image to final directory
subprocess.run("find . -iname '*.AppImage' -exec cp {} %s \;" % outdir, shell = True)
os.chdir('/tmp')
def __del__(self):
"""Destructor for the class."""
# Cleanup
shutil.rmtree(self.__builddir__)
del self.__builddir__
if __name__ == '__main__':