From d4ecb04909d186050a31795b90f0d86917646714 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Sun, 6 Mar 2022 16:58:54 +0100 Subject: Add Electron Archive Format type application/x-asar Formerly known as "Atom Shell Archive Format" [1]. Unofficial MIME type also used by NPM "file-type" library [2]. [1] https://github.com/electron/asar [2] https://github.com/sindresorhus/file-type/blob/main/core.d.ts#L274 --- data/freedesktop.org.xml.in | 11 +++++++++++ tests/mime-detection/extractthis.asar | Bin 0 -> 467 bytes tests/mime-detection/list | 2 ++ 3 files changed, 13 insertions(+) create mode 100644 tests/mime-detection/extractthis.asar 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. + + Electron Archive (ASAR) + ASAR + Atom Shell Archive Format + + + + + + + ASP page ASP diff --git a/tests/mime-detection/extractthis.asar b/tests/mime-detection/extractthis.asar new file mode 100644 index 00000000..1f4934a2 Binary files /dev/null and b/tests/mime-detection/extractthis.asar 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 -- cgit v1.2.1