Altre correzioni alle chiamate.
This commit is contained in:
parent
baa0564c16
commit
5745759488
|
@ -208,16 +208,10 @@ class Build(object):
|
||||||
subprocess.run("md5sum {appimage} > {appimage}.md5".format(appimage = appimage), shell=True)
|
subprocess.run("md5sum {appimage} > {appimage}.md5".format(appimage = appimage), shell=True)
|
||||||
|
|
||||||
|
|
||||||
def move(self, outdir):
|
def move(self):
|
||||||
"""Moves built versions to definitive storage."""
|
"""Moves built versions to definitive storage."""
|
||||||
if self.built:
|
if self.built:
|
||||||
return
|
return
|
||||||
if not outdir in self.storage_path:
|
|
||||||
# Let's create an updated storage_path
|
|
||||||
if self.portable:
|
|
||||||
self.storage_path = outdir + '/portable'
|
|
||||||
else:
|
|
||||||
self.storage_path = outdir
|
|
||||||
|
|
||||||
os.chdir(self.appnamedir)
|
os.chdir(self.appnamedir)
|
||||||
subprocess.run("find . -iname '*.AppImage*' -exec cp {} %s \;" % self.storage_path, shell=True)
|
subprocess.run("find . -iname '*.AppImage*' -exec cp {} %s \;" % self.storage_path, shell=True)
|
||||||
|
|
|
@ -32,10 +32,13 @@ def build(arch, language, offline, portable, updatable, download, storage, check
|
||||||
|
|
||||||
if check:
|
if check:
|
||||||
obj.check(storage)
|
obj.check(storage)
|
||||||
|
else:
|
||||||
|
obj.storage_path = storage
|
||||||
|
|
||||||
obj.download(download)
|
obj.download(download)
|
||||||
obj.build()
|
obj.build()
|
||||||
obj.checksums()
|
obj.checksums()
|
||||||
obj.move(storage)
|
obj.move()
|
||||||
del obj
|
del obj
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue