fix snap icon

This commit is contained in:
alemuntoni 2020-06-04 14:35:24 +02:00
parent 8f550373c2
commit be40e562ed
3 changed files with 7 additions and 13 deletions

View File

@ -6,7 +6,7 @@ GenericName=Mesh processing
GenericName[en_GB]=Mesh processing
Comment=View and process meshes
Type=Application
Icon=icon.png
Icon=/snap/meshlab/x1/usr/share/icons/meshlab.png
Exec=meshlab %F
Terminal=false
MimeType=model/mesh;application/x-3ds;image/x-3ds;model/x-ply;application/sla;model/x-quad-object;model/x-geomview-off;application/x-cyclone-ptx;application/x-vmi;application/x-bre;model/vnd.collada+xml;model/openctm;application/x-expe-binary;application/x-expe-ascii;application/x-xyz;application/x-gts;chemical/x-pdb;application/x-tri;application/x-asc;model/x3d+xml;model/x3d+vrml;model/vrml;model/u3d;model/idtf;

View File

@ -87,9 +87,8 @@ parts:
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/applications
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/meshlab
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/doc/meshlab
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/icons/hicolor/512x512/apps/
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/icons/Yaru/512x512/apps/
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/icons
cd distrib
rm -r lib/macx64/
@ -102,10 +101,8 @@ parts:
rm -r plugins/plugins.txt
rm -r README.md
cp install/linux/snap/meshlab.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications/
cp meshlab.png $SNAPCRAFT_PART_INSTALL/usr/share/applications/
cp meshlab.png $SNAPCRAFT_PART_INSTALL/usr/share/icons/hicolor/512x512/apps/meshlab.png
mv meshlab.png $SNAPCRAFT_PART_INSTALL/usr/share/icons/Yaru/512x512/apps/meshlab.png
cp ../install/linux/snap/meshlab.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications/
mv meshlab.png $SNAPCRAFT_PART_INSTALL/usr/share/icons/meshlab.png
mv meshlabserver $SNAPCRAFT_PART_INSTALL/usr/bin
mv meshlab $SNAPCRAFT_PART_INSTALL/usr/bin
mv LICENSE.txt $SNAPCRAFT_PART_INSTALL/usr/share/doc/meshlab/

View File

@ -87,8 +87,7 @@ parts:
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/applications
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/meshlab
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/doc/meshlab
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/icons/hicolor/512x512/apps/
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/icons/Yaru/512x512/apps/
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/icons
cd distrib
@ -103,9 +102,7 @@ parts:
rm -r README.md
cp ../install/linux/snap/meshlab.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications/
cp meshlab.png $SNAPCRAFT_PART_INSTALL/usr/share/applications/icon.png
cp meshlab.png $SNAPCRAFT_PART_INSTALL/usr/share/icons/hicolor/512x512/apps/meshlab.png
mv meshlab.png $SNAPCRAFT_PART_INSTALL/usr/share/icons/Yaru/512x512/apps/meshlab.png
mv meshlab.png $SNAPCRAFT_PART_INSTALL/usr/share/icons/meshlab.png
mv meshlabserver $SNAPCRAFT_PART_INSTALL/usr/bin
mv meshlab $SNAPCRAFT_PART_INSTALL/usr/bin
mv LICENSE.txt $SNAPCRAFT_PART_INSTALL/usr/share/doc/meshlab/