mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +01:00
Setup mime information when installing.
This commit is contained in:
parent
3317b088a5
commit
c7a7610a34
2 changed files with 21 additions and 3 deletions
11
Makefile
11
Makefile
|
@ -104,16 +104,16 @@ arch:
|
||||||
|
|
||||||
desktop: obj
|
desktop: obj
|
||||||
@echo "[Desktop Entry]" > $(OBJDIR)/leocad.desktop
|
@echo "[Desktop Entry]" > $(OBJDIR)/leocad.desktop
|
||||||
@echo "Encoding=UTF-8" >> $(OBJDIR)/leocad.desktop
|
@echo "Version=1.0" >> $(OBJDIR)/leocad.desktop
|
||||||
@echo "Name=LeoCAD" >> $(OBJDIR)/leocad.desktop
|
@echo "Name=LeoCAD" >> $(OBJDIR)/leocad.desktop
|
||||||
@echo "Comment=Create virtual LEGO models" >> $(OBJDIR)/leocad.desktop
|
@echo "Comment=Create virtual LEGO models" >> $(OBJDIR)/leocad.desktop
|
||||||
@echo "Comment[nb]=Lag virtuelle LEGO-modeller" >> $(OBJDIR)/leocad.desktop
|
@echo "Comment[nb]=Lag virtuelle LEGO-modeller" >> $(OBJDIR)/leocad.desktop
|
||||||
@echo "Comment[pt_BR]=Criar modelos virtuais de LEGO" >> $(OBJDIR)/leocad.desktop
|
@echo "Comment[pt_BR]=Criar modelos virtuais de LEGO" >> $(OBJDIR)/leocad.desktop
|
||||||
@echo "Exec=$(DESTDIR)$(PREFIX)/bin/leocad" >> $(OBJDIR)/leocad.desktop
|
@echo "Exec=$(DESTDIR)$(PREFIX)/bin/leocad %f" >> $(OBJDIR)/leocad.desktop
|
||||||
@echo "Terminal=false" >> $(OBJDIR)/leocad.desktop
|
@echo "Terminal=false" >> $(OBJDIR)/leocad.desktop
|
||||||
@echo "Type=Application" >> $(OBJDIR)/leocad.desktop
|
@echo "Type=Application" >> $(OBJDIR)/leocad.desktop
|
||||||
@echo "Icon=$(DESTDIR)$(PREFIX)/share/pixmaps/leocad.svg" >> $(OBJDIR)/leocad.desktop
|
@echo "Icon=$(DESTDIR)$(PREFIX)/share/pixmaps/leocad.svg" >> $(OBJDIR)/leocad.desktop
|
||||||
@echo "MimeType=application/vnd.leocad;application/x-ldraw;application/x-multi-part-ldraw" >> $(OBJDIR)/leocad.desktop
|
@echo "MimeType=application/vnd.leocad;application/x-ldraw;application/x-multi-part-ldraw;" >> $(OBJDIR)/leocad.desktop
|
||||||
@echo "Categories=Graphics;3DGraphics;Education;" >> $(OBJDIR)/leocad.desktop
|
@echo "Categories=Graphics;3DGraphics;Education;" >> $(OBJDIR)/leocad.desktop
|
||||||
|
|
||||||
install: $(BIN) desktop
|
install: $(BIN) desktop
|
||||||
|
@ -123,9 +123,14 @@ install: $(BIN) desktop
|
||||||
install -c -m 0644 docs/leocad.1 $(DESTDIR)$(PREFIX)/share/man/man1/
|
install -c -m 0644 docs/leocad.1 $(DESTDIR)$(PREFIX)/share/man/man1/
|
||||||
install -d $(DESTDIR)$(PREFIX)/share/leocad
|
install -d $(DESTDIR)$(PREFIX)/share/leocad
|
||||||
install -c -m 0644 tools/icon/icon128.png $(DESTDIR)$(PREFIX)/share/leocad/icon.png
|
install -c -m 0644 tools/icon/icon128.png $(DESTDIR)$(PREFIX)/share/leocad/icon.png
|
||||||
|
install -d $(DESTDIR)$(PREFIX)/share/applications
|
||||||
install -c -m 0644 $(OBJDIR)/leocad.desktop $(DESTDIR)$(PREFIX)/share/applications/
|
install -c -m 0644 $(OBJDIR)/leocad.desktop $(DESTDIR)$(PREFIX)/share/applications/
|
||||||
install -d $(DESTDIR)$(PREFIX)/share/pixmaps
|
install -d $(DESTDIR)$(PREFIX)/share/pixmaps
|
||||||
install -c -m 0644 tools/icon/icon.svg $(DESTDIR)$(PREFIX)/share/pixmaps/leocad.svg
|
install -c -m 0644 tools/icon/icon.svg $(DESTDIR)$(PREFIX)/share/pixmaps/leocad.svg
|
||||||
|
install -d $(DESTDIR)$(PREFIX)/share/mime/packages
|
||||||
|
install -c -m 0644 linux/leocad-mime.xml $(DESTDIR)$(PREFIX)/share/mime/packages/
|
||||||
|
update-mime-database $(DESTDIR)$(PREFIX)/share/mime/
|
||||||
|
update-desktop-database
|
||||||
|
|
||||||
binary: binary-zip binary-tgz
|
binary: binary-zip binary-tgz
|
||||||
|
|
||||||
|
|
13
linux/leocad-mime.xml
Normal file
13
linux/leocad-mime.xml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
|
||||||
|
<mime-type type="application/vnd.leocad">
|
||||||
|
<comment>LeoCAD Project</comment>
|
||||||
|
<magic priority="90">
|
||||||
|
<match type="string" offset="0" value="LeoCAD 0.">
|
||||||
|
<match type="string" offset="10" value=" Project\0\0"/>
|
||||||
|
</match>
|
||||||
|
</magic>
|
||||||
|
<glob pattern="*.lcd"/>
|
||||||
|
<glob pattern="*.leocad"/>
|
||||||
|
</mime-type>
|
||||||
|
</mime-info>
|
Loading…
Add table
Reference in a new issue