Corretto flusso di rebuild.

This commit is contained in:
Emiliano Vavassori 2022-03-20 01:09:53 +01:00
parent 249527c78c
commit a059e27a20
1 changed files with 2 additions and 1 deletions

View File

@ -117,9 +117,9 @@ class Build(object):
os.makedirs(bindir, exist_ok = True)
os.chdir(bindir)
subprocess.run("find ../../opt -name soffice -path '*programm*' -exec ln -s {} %s \;" % binaryname, shell=True)
os.chdir(self.appimagedir)
# Download AppRun from github
os.chdir(self.appimagedir)
apprunurl = "https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-{arch}".format(arch = self.__arch__)
urllib.request.urlretrieve(apprunurl, 'AppRun')
os.chmod('AppRun', 0o755)
@ -130,6 +130,7 @@ class Build(object):
appversion += '.help'
# Building app
os.chdir(self.appnamedir)
subprocess.run("VERSION={version} ./appimagetool -v ./{appname}.AppDir/".format(version = appversion, appname = self.__appname__), shell=True)
print("Built AppImage version {version}".format(version = appversion))