Correzione a check().
This commit is contained in:
parent
c2d3c9d21a
commit
baa0564c16
@ -43,10 +43,7 @@ class Build(object):
|
||||
|
||||
def check(self, storage_path):
|
||||
"""Checking if the requested AppImage has been already built."""
|
||||
self.storage_path = storage_path
|
||||
|
||||
if self.portable:
|
||||
self.storage_path += "/portable"
|
||||
self.storage_path = storage_path + ('/portable' if self.portable else '')
|
||||
|
||||
for arch in self.arch:
|
||||
res = subprocess.check_output("find {path} -name '{appimage}'".format(
|
||||
@ -187,7 +184,7 @@ class Build(object):
|
||||
# Building app
|
||||
if self.updatable:
|
||||
zsync = self.appimagefilename[arch] + '.zsync'
|
||||
subprocess.run("VERSION={version} ./appimagetool -u 'zsync|{zsync}' -v ./{appname}.AppDir/".format(version = appversion, zsync = zsync, appname = self.__appname__), shell=True)
|
||||
subprocess.run("VERSION={version} ./appimagetool -u 'zsync|{zsync}' -v ./{appname}.AppDir/".format(version = appversion, zsync = self.appimagefilename[arch] + '.zsync', appname = self.appname), shell=True)
|
||||
|
||||
else:
|
||||
subprocess.run("VERSION={version} ./appimagetool -v ./{appname}.AppDir/".format(version = appversion, appname = self.appname), shell=True)
|
||||
|
Reference in New Issue
Block a user