1
0

Ancora su versione lanciata in ambiente.

This commit is contained in:
Emiliano Vavassori 2022-04-08 01:41:17 +02:00
parent b97939ede6
commit bf1d9e0446

View File

@ -86,7 +86,7 @@ class Build(object):
if len(self.relative_path) == 0: if len(self.relative_path) == 0:
if self.query == 'daily': if self.query == 'daily':
self.relative_path.append('daily') self.relative_path.append('daily')
elif self.query == 'prerelease': elif self.query == 'primageerelease':
self.relative_path.append('prerelease') self.relative_path.append('prerelease')
# Not the same check, an additional one # Not the same check, an additional one
@ -271,7 +271,7 @@ class Build(object):
buildopts_str = str.join(' ', buildopts) buildopts_str = str.join(' ', buildopts)
# Build the number-specific build # Build the number-specific build
subprocess.run(shlex.split(f"{self.appnamedir}/appimagetool {buildopts_str} -v ./{self.appname}.AppDir/"), env={ 'VERSION': self.appversion }) subprocess.run(shlex.split(f"{self.appnamedir}/appimagetool {buildopts_str} -v ./{self.appname}.AppDir/"), env={ "VERSION": self.appversion })
print(f"Built AppImage version {self.appversion}") print(f"Built AppImage version {self.appversion}")
@ -291,7 +291,7 @@ class Build(object):
for arch in self.arch: for arch in self.arch:
for item in [ self.appimagefilename[arch], self.zsyncfilename[arch] ]: for item in [ self.appimagefilename[arch], self.zsyncfilename[arch] ]:
# For any built arch, find out if a file exist. # For any built arch, find out if a file exist.
if len(glob.glob(self.appimagefilename[arch] + '.md5')) == 0: if not os.path.exists(f"{item}.md5"):
# Build checksum # Build checksum
subprocess.run(shlex.split(f"md5sum {item} > {item}.md5")) subprocess.run(shlex.split(f"md5sum {item} > {item}.md5"))
@ -306,7 +306,7 @@ class Build(object):
# Forcing creation of subfolders, in case there is a new build # Forcing creation of subfolders, in case there is a new build
os.makedirs(self.full_path, exist_ok = True) os.makedirs(self.full_path, exist_ok = True)
for file in glob.glob("*.AppImage*"): for file in glob.glob("*.AppImage*"):
subprocess.run(shlex.split(f"cp -f {file} {self.fullpath}")) subprocess.run(shlex.split(f"cp -f {file} {self.full_path}"))
def generalize_and_link(self): def generalize_and_link(self):