Correzione sostituzione della shortversion nella stringa di replacement.
This commit is contained in:
parent
5430000a32
commit
d1a2b50461
|
@ -168,7 +168,7 @@ class Build(object):
|
||||||
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 = str.join('.', self.version.split('.')[:3])
|
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/%s|g' {} \+" % shortversion, shell=True, cwd=self.appimagedir)
|
||||||
|
|
||||||
# Changing desktop file
|
# Changing desktop file
|
||||||
subprocess.run("find . -iname startcenter.desktop -exec cp {} . \;", shell=True, cwd=self.appimagedir)
|
subprocess.run("find . -iname startcenter.desktop -exec cp {} . \;", shell=True, cwd=self.appimagedir)
|
||||||
|
|
Loading…
Reference in New Issue