1
0

Correzione creazione sottocartelle.

This commit is contained in:
Emiliano Vavassori 2022-03-19 23:38:26 +01:00
parent 8649b928bb
commit 565c2d9dce

View File

@ -86,7 +86,7 @@ class Build(object):
binaryname = subprocess.check_output("awk 'BEGIN { FS = \"=\" } /^Exec/ { print $2; exit }' startcenter.desktop | awk '{ print $1 }'", shell=True).decode('utf-8').strip('\n') binaryname = subprocess.check_output("awk 'BEGIN { FS = \"=\" } /^Exec/ { print $2; exit }' startcenter.desktop | awk '{ print $1 }'", shell=True).decode('utf-8').strip('\n')
subprocess.run("find . -name startcenter.png -path '*hicolor*48x48*' -exec cp {} %s-startcenter.png \;" % binaryname, shell=True) 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.makedirs(os.path.join(self.__builddir__, self.__appname__, self.__appname__ + '.AppDir', 'usr', 'bin'), exist_ok = True)
os.chdir(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) 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')) os.chdir(os.path.join(self.__builddir__, self.__appname__, self.__appname__ + '.AppDir'))