1
0

Corretto flusso di rebuild.

This commit is contained in:
Emiliano Vavassori 2022-03-20 01:09:53 +01:00
parent 249527c78c
commit a059e27a20

View File

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