summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/freedesktop.org.xml.in11
-rw-r--r--tests/mime-detection/extractthis.asarbin0 -> 467 bytes
-rw-r--r--tests/mime-detection/list2
3 files changed, 13 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 367483a7..48605c2b 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -1528,6 +1528,17 @@ command to generate the output files.
</magic>
<glob pattern="*.arj"/>
</mime-type>
+ <mime-type type="application/x-asar">
+ <comment>Electron Archive (ASAR)</comment>
+ <acronym>ASAR</acronym>
+ <expanded-acronym>Atom Shell Archive Format</expanded-acronym>
+ <magic priority="50">
+ <match type="string" value="\004\000\000\000" offset="0">
+ <match type="string" value="{&quot;files&quot;:" offset="16"/>
+ </match>
+ </magic>
+ <glob pattern="*.asar"/>
+ </mime-type>
<mime-type type="application/x-asp">
<comment>ASP page</comment>
<acronym>ASP</acronym>
diff --git a/tests/mime-detection/extractthis.asar b/tests/mime-detection/extractthis.asar
new file mode 100644
index 00000000..1f4934a2
--- /dev/null
+++ b/tests/mime-detection/extractthis.asar
Binary files differ
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 77c5d79a..5c6f3bff 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -531,6 +531,8 @@ test.zz application/zlib ox
test.xar application/x-xar
# From https://bugs.freedesktop.org/show_bug.cgi?id=93549
serafettin.rar application/vnd.rar
+# From https://github.com/electron/asar/tree/main/test/input
+extractthis.asar application/x-asar
# Audio/Video files
# https://bugs.freedesktop.org/show_bug.cgi?id=20070#c4