Trovato forse problema: passaggio di arch.
This commit is contained in:
parent
daff0535d3
commit
0df231e450
@ -49,10 +49,7 @@ class Build(object):
|
|||||||
|
|
||||||
for arch in self.arch:
|
for arch in self.arch:
|
||||||
print("DEBUG: {appimage}".format(appimage = self.appimagefilename[arch]))
|
print("DEBUG: {appimage}".format(appimage = self.appimagefilename[arch]))
|
||||||
res = subprocess.check_output("find {path} -name '{appimage}'".format(
|
res = subprocess.check_output("find {path} -name '{appimage}'".format(path = self.storage_path, appimage = self.appimagefilename[arch] + ('.zsync' if self.updatable else '')), shell=True).decode('utf-8').strip('\n')
|
||||||
path = self.storage_path,
|
|
||||||
appimage = self.appimagefilename[arch] + ('.zsync' if self.updatable else '')
|
|
||||||
), shell=True).decode('utf-8').strip('\n')
|
|
||||||
if len(res) > 1:
|
if len(res) > 1:
|
||||||
self.built = True
|
self.built = True
|
||||||
|
|
||||||
|
@ -20,26 +20,25 @@ def build(arch, language, offline, portable, updatable, download, storage, check
|
|||||||
# We need to build it twice.
|
# We need to build it twice.
|
||||||
arches = [ u'x86', u'x86_64' ]
|
arches = [ u'x86', u'x86_64' ]
|
||||||
else:
|
else:
|
||||||
arches = [ arch.lower() ]
|
arches = [ arch.lower().decode('utf-8') ]
|
||||||
|
|
||||||
for arch in arches:
|
obj = loaih.Build(query, arches)
|
||||||
obj = loaih.Build(query, arch)
|
|
||||||
|
|
||||||
obj.language = language
|
obj.language = language
|
||||||
obj.offline_help = offline
|
obj.offline_help = offline
|
||||||
obj.portable = portable
|
obj.portable = portable
|
||||||
obj.updatable = updatable
|
obj.updatable = updatable
|
||||||
|
|
||||||
if check:
|
if check:
|
||||||
obj.check(storage)
|
obj.check(storage)
|
||||||
else:
|
else:
|
||||||
obj.storage_path = storage
|
obj.storage_path = storage
|
||||||
|
|
||||||
obj.download(download)
|
obj.download(download)
|
||||||
obj.build()
|
obj.build()
|
||||||
obj.checksums()
|
obj.checksums()
|
||||||
obj.move()
|
obj.move()
|
||||||
del obj
|
del obj
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
build()
|
build()
|
||||||
|
Reference in New Issue
Block a user