From 18f06aedff7120ccad17ba5b836045d6765f198d Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 19 Mar 2022 22:53:52 +0100 Subject: [PATCH] Corretto unpacking dei tarball. --- build.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index 5d37b80..f0925c8 100644 --- a/build.py +++ b/build.py @@ -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__':