Drop-in replacing appimagetool from AppImage/appimagetool instead of AppImage/AppImageKit.
This commit is contained in:
parent
a3c7e6a94d
commit
f1f0a1e0de
|
|
@ -260,7 +260,7 @@ class Build():
|
|||
# And then cd to the appname folder.
|
||||
os.chdir(self.appnamedir)
|
||||
# Download appimagetool from github
|
||||
appimagetoolurl = r"https://github.com/AppImage/AppImageKit/releases/"
|
||||
appimagetoolurl = r"https://github.com/AppImage/appimagetool/releases/"
|
||||
appimagetoolurl += f"download/continuous/appimagetool-{self.arch}.AppImage"
|
||||
self.__download__(appimagetoolurl, 'appimagetool')
|
||||
os.chmod('appimagetool', 0o755)
|
||||
|
|
@ -708,11 +708,12 @@ class Build():
|
|||
shutil.rmtree(os.path.abspath(os.path.join(self.appimagedir, local)), ignore_errors=True)
|
||||
|
||||
# Download AppRun from github
|
||||
apprunurl = r"https://github.com/AppImage/AppImageKit/releases/"
|
||||
apprunurl += f"download/continuous/AppRun-{self.arch}"
|
||||
dest = os.path.join(self.appimagedir, 'AppRun')
|
||||
self.__download__(apprunurl, dest)
|
||||
os.chmod(dest, 0o755)
|
||||
# With the new appimagetool, this shouldn't be needed anymore.
|
||||
#apprunurl = r"https://github.com/AppImage/AppImageKit/releases/"
|
||||
#apprunurl += f"download/continuous/AppRun-{self.arch}"
|
||||
#dest = os.path.join(self.appimagedir, 'AppRun')
|
||||
#self.__download__(apprunurl, dest)
|
||||
#os.chmod(dest, 0o755)
|
||||
|
||||
# Dealing with extra options
|
||||
buildopts = []
|
||||
|
|
@ -726,18 +727,18 @@ class Build():
|
|||
buildopts_str = str.join(' ', buildopts)
|
||||
|
||||
# Build the number-specific build
|
||||
command = f"{self.appnamedir}/appimagetool {buildopts_str} -v {self.appimagedir}"
|
||||
if self.verbose:
|
||||
print("---- Start building ----")
|
||||
subprocess.run(shlex.split(
|
||||
f"{self.appnamedir}/appimagetool {buildopts_str} -v " +
|
||||
f"{self.appimagedir}"
|
||||
), env={ "VERSION": self.appversion }, check=True)
|
||||
print(f"DEBUG: {command}")
|
||||
subprocess.run(shlex.split(command),
|
||||
env={ "VERSION": self.appversion },
|
||||
check=True)
|
||||
print("---- End building ----")
|
||||
else:
|
||||
subprocess.run(shlex.split(
|
||||
f"{self.appnamedir}/appimagetool {buildopts_str} -v " +
|
||||
f"{self.appimagedir}"
|
||||
), env={ "VERSION": self.appversion }, stdout=subprocess.DEVNULL,
|
||||
subprocess.run(shlex.split(command),
|
||||
env={ "VERSION": self.appversion },
|
||||
stdout=subprocess.DEVNULL,
|
||||
stderr=subprocess.DEVNULL, check=True)
|
||||
|
||||
if self.verbose:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3
|
||||
# encoding: utf-8
|
||||
|
||||
version = "1.4.0rc1"
|
||||
version = "1.4.0rc2"
|
||||
|
|
|
|||
Loading…
Reference in New Issue