Correzione shortversion per portable.
This commit is contained in:
parent
be24ebf75e
commit
5430000a32
@ -167,7 +167,7 @@ class Build(object):
|
|||||||
# At this point, let's decompress the deb packages
|
# At this point, let's decompress the deb packages
|
||||||
subprocess.run("find .. -iname '*.deb' -exec dpkg -x {} . \;", shell=True, cwd=self.appimagedir)
|
subprocess.run("find .. -iname '*.deb' -exec dpkg -x {} . \;", shell=True, cwd=self.appimagedir)
|
||||||
if self.portable:
|
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)
|
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
|
# Changing desktop file
|
||||||
|
Reference in New Issue
Block a user