[file-roller/wip/jtojnar/dmg] command-7z: Add r/o support for .dmg




commit 499fd6b3ee9843430bf64bc8787a14b4d49a112b
Author: Jan Tojnar <jtojnar gmail com>
Date:   Wed Aug 31 19:51:58 2022 +0200

    command-7z: Add r/o support for .dmg

 NEWS                      | 21 +++++++++++++++++++++
 README.md                 |  1 +
 data/supported-mime-types |  1 +
 src/fr-command-7z.c       |  1 +
 src/fr-init.c             |  2 ++
 5 files changed, 26 insertions(+)
---
diff --git a/NEWS b/NEWS
index 949a4889..684b938f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,24 @@
+Version 43.beta
+----------------
+Released: 2022-??-??
+
+New features and user visible changes:
+
+- Add read-only support for Appleā€™s `dmg` image format through 7-zip (!85)
+
+Bugs fixed:
+
+-
+
+Other changes:
+
+-
+
+Translation updates:
+
+-
+
+
 Version 43.alpha
 ----------------
 Released: 2022-08-18
diff --git a/README.md b/README.md
index d0a8f3e5..f62a1311 100644
--- a/README.md
+++ b/README.md
@@ -20,6 +20,7 @@ like tar and zip. The supported file types are:
 * Cabinet File (.cab)
 * UNIX CPIO Archive (.cpio)
 * Debian Linux Package (.deb) [Read-only mode]
+* Apple Disk Image (.dmg) [Read-only mode]
 * ISO-9660 CD Disc Image (.iso) [Read-only mode]
 * Java Archive (.jar)
 * Java Enterprise archive (.ear)
diff --git a/data/supported-mime-types b/data/supported-mime-types
index eae23630..604367bc 100644
--- a/data/supported-mime-types
+++ b/data/supported-mime-types
@@ -7,6 +7,7 @@ application/x-7z-compressed;
 application/x-7z-compressed-tar;
 application/x-ace;
 application/x-alz;
+application/x-apple-diskimage;
 application/x-ar;
 application/x-archive;
 application/x-arj;
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index dcf4b51a..6d20cf72 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -576,6 +576,7 @@ fr_command_7z_handle_error (FrCommand *command,
 const char *sevenz_mime_types[] = {
        "application/epub+zip",
        "application/x-7z-compressed",
+       "application/x-apple-diskimage",
        "application/x-arj",
        "application/vnd.ms-cab-compressed",
        "application/x-cd-image",
diff --git a/src/fr-init.c b/src/fr-init.c
index a04812bf..fc8aa44b 100644
--- a/src/fr-init.c
+++ b/src/fr-init.c
@@ -86,6 +86,7 @@ FrMimeTypeDescription mime_type_desc[] = {
        { "application/x-deb",                     ".deb",      0 },
        { "application/x-debian-package",          ".deb",      0 },
        { "application/vnd.debian.binary-package", ".deb",      0 },
+       { "application/x-apple-diskimage",         ".dmg",      0 },
        { "application/vnd.snap",                  ".snap",     0 },
        { "application/vnd.squashfs",              ".sqsh",     0 },
        { "application/x-ear",                     ".ear",      0 },
@@ -140,6 +141,7 @@ FrExtensionType file_ext_type[] = {
        { ".cpio", "application/x-cpio" },
        { ".crx", "application/x-chrome-extension" },
        { ".deb", "application/x-deb" },
+       { ".dmg", "application/x-apple-diskimage" },
        { ".ear", "application/x-ear" },
        { ".epub", "application/epub+zip" },
        { ".exe", "application/x-ms-dos-executable" },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]