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