diff --git a/build.py b/build.py index 229c521..83b48b8 100644 --- a/build.py +++ b/build.py @@ -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))