1
0

Revisione dell'icona.

This commit is contained in:
Emiliano Vavassori 2022-03-19 23:35:37 +01:00
parent 6a08d3bcb2
commit 8649b928bb

View File

@ -82,11 +82,11 @@ class Build(object):
# Changing desktop file
subprocess.run("find . -iname startcenter.desktop -exec cp {} . \;", shell=True)
subprocess.run("sed -i -e 's|Name=.*|Name=%s|g' startcenter.desktop" % self.__appname__, shell=True)
subprocess.run("find . -name startcenter.png -path '*hicolor*48x48*' -exec cp {} \;", shell=True)
binaryname = subprocess.check_output("awk 'BEGIN { FS = \"=\" } /^Exec/ { print $2; exit }' startcenter.desktop | awk '{ print $1 }'", shell=True).decode('utf-8').strip('\n')
os.makedirs(os.path.join(self.__builddir__, self.__appname__, self.__appname__ + '.AppDir', 'usr', 'bin'))
subprocess.run("find . -name startcenter.png -path '*hicolor*48x48*' -exec cp {} %s-startcenter.png \;" % binaryname, shell=True)
os.makedirs(os.path.join(self.__builddir__, self.__appname__, self.__appname__ + '.AppDir', 'usr', 'bin'))
os.chdir(os.path.join(self.__builddir__, self.__appname__, self.__appname__ + '.AppDir', 'usr', 'bin'))
subprocess.run("find ../../opt -name soffice -path '*programm*' -exec ln -s {} %s \;" % binaryname, shell=True)
os.chdir(os.path.join(self.__builddir__, self.__appname__, self.__appname__ + '.AppDir'))