diff --git a/loaih/__init__.py b/loaih/__init__.py index 32643cc..ecd087c 100644 --- a/loaih/__init__.py +++ b/loaih/__init__.py @@ -167,7 +167,7 @@ class Build(object): # At this point, let's decompress the deb packages subprocess.run("find .. -iname '*.deb' -exec dpkg -x {} . \;", shell=True, cwd=self.appimagedir) if self.portable: - shortversion = self.version.split('.')[0-2].join('.') + shortversion = str.join('.', self.version.split('.')[:3]) subprocess.run("find . -type f -iname 'bootstraprc' -exec sed -i 's|^UserInstallation=.*|UserInstallation=\$SYSUSERCONFIG/libreoffice/{version}|g' {} \+".format(version = shortversion), shell=True, cwd=self.appimagedir) # Changing desktop file