Skip to content

Commit

Permalink
added more mime types (fixes #1461) (#1468)
Browse files Browse the repository at this point in the history
* added more mime types (fixes #1461)
Refactored a few more files

* Fixed path to Desktop file
  • Loading branch information
midwan authored Oct 10, 2024
1 parent 0c5d052 commit 7ecdc36
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 10 deletions.
10 changes: 6 additions & 4 deletions cmake/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ install(DIRECTORY ${CMAKE_SOURCE_DIR}/roms
install(DIRECTORY ${CMAKE_SOURCE_DIR}/whdboot
DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME})
# Install desktop file
install(FILES ${CMAKE_SOURCE_DIR}/packaging/Amiberry.desktop
install(FILES ${CMAKE_SOURCE_DIR}/packaging/linux/Amiberry.desktop
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
# Install icon
install(FILES ${CMAKE_SOURCE_DIR}/data/amiberry.svg
Expand All @@ -47,7 +47,9 @@ install(FILES ${CMAKE_SOURCE_DIR}/debian/changelog.gz
DESTINATION ${CMAKE_INSTALL_DOCDIR})
install(FILES ${CMAKE_SOURCE_DIR}/debian/copyright
DESTINATION ${CMAKE_INSTALL_DOCDIR})
install(FILES ${CMAKE_SOURCE_DIR}/packaging/amiberry.1.gz
install(FILES ${CMAKE_SOURCE_DIR}/packaging/linux/man/amiberry.1.gz
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
install(FILES ${CMAKE_SOURCE_DIR}/packaging/Amiberry.metainfo.xml
DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo)
install(FILES ${CMAKE_SOURCE_DIR}/packaging/linux/Amiberry.metainfo.xml
DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo)
install(FILES ${CMAKE_SOURCE_DIR}/packaging/linux/mime/amiberry.xml
DESTINATION ${CMAKE_INSTALL_DATADIR}/mime/packages)
5 changes: 0 additions & 5 deletions debian/changelog

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Terminal = false
# Describes the categories in which this entry should be shown
Categories = Game;Emulator;

MimeType=application/x-amiga-disk-image;application/x-cue;application/octet-stream;
MimeType=application/x-SPS-virtual-media-image;application/x-DMS-compressed-disk-image;application/x-amiga-disk-image;application/x-cue;application/x-WHDLoad-game-archive;

# Describes the encoding for the desktop entry
Encoding=UTF-8
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions packaging/linux/mime/amiberry.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-SPS-virtual-media-image">
<comment>Interchangeable Preservation Format</comment>
<generic-icon name="media-floppy"/>
<magic priority="50">
<match type="string" value="CAPS" offset="0"/>
</magic>
<glob pattern="*.ipf"/>
</mime-type>
<mime-type type="application/x-DMS-compressed-disk-image">
<comment>Disk Masher System</comment>
<generic-icon name="media-floppy"/>
<magic priority="50">
<match type="string" value="DMS!" offset="0"/>
</magic>
<glob pattern="*.dms"/>
</mime-type>
<mime-type type="application/x-WHDLoad-game-archive">
<comment>WHDLoad Amiga Package</comment>
<generic-icon name="package-x-generic"/>
<magic-deleteall/>
<magic priority="60">
<match type="big32" value="0x001000084" offset="8:11"/>
</magic>
<glob-deleteall/>
<glob pattern="*.lha"/>
</mime-type>
</mime-info>

0 comments on commit 7ecdc36

Please sign in to comment.