From 7a25fb5064e4ca42207ec3b3ecc648f61751abc8 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sun, 20 Mar 2022 00:01:15 +0100 Subject: [PATCH] Correzione build. --- build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index 2d0c2fe..878c277 100644 --- a/build.py +++ b/build.py @@ -81,10 +81,10 @@ class Build(object): subprocess.run("find .. -iname '*.deb' -exec dpkg -x {} . \;", shell=True) # 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("sed -i -e 's|Name=.*|Name=%s|g' startcenter.desktop" % self.__appname__, 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') - 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 {} . \;" % binaryname, shell=True) 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'))