Corretto unpacking dei tarball.
This commit is contained in:
parent
d4d279991a
commit
18f06aedff
5
build.py
5
build.py
|
@ -74,7 +74,7 @@ class Build(object):
|
||||||
|
|
||||||
# Unpacking the tarballs
|
# Unpacking the tarballs
|
||||||
for archive in buildtarballs:
|
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
|
# At this point, let's decompress the deb packages
|
||||||
os.chdir(os.path.join(self.__builddir__, self.__appname__, self.__appname__ + '.AppImage'))
|
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
|
# Copying built image to final directory
|
||||||
subprocess.run("find . -iname '*.AppImage' -exec cp {} %s \;" % outdir, shell = True)
|
subprocess.run("find . -iname '*.AppImage' -exec cp {} %s \;" % outdir, shell = True)
|
||||||
|
os.chdir('/tmp')
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
"""Destructor for the class."""
|
"""Destructor for the class."""
|
||||||
# Cleanup
|
# Cleanup
|
||||||
shutil.rmtree(self.__builddir__)
|
del self.__builddir__
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue