summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2023-11-22 08:04:15 -0700
committerDavid Faure <faure@kde.org>2024-01-28 18:48:17 +0000
commit9fad810b3f205eed438f262dac1c8820fd25ecf4 (patch)
treec57305a74572b39ede6a30730f66e71573c90a59
parenteb28513c9595f62760df2a3afff9fe3cc6601f8d (diff)
Add application/microsoftpatch and application/microsoftupdate
These two are not official IANA media types, but they can be found in the wild. Wine currently supports .msp files and may gain support for .msu files in the future. https://forums.ivanti.com/s/sfsites/c/sfc/servlet.shepherd/document/download/0694O00000J7pyUQAR
-rw-r--r--data/freedesktop.org.xml.in17
-rw-r--r--tests/mime-detection/list2
-rw-r--r--tests/mime-detection/winetest-patch.mspbin0 -> 8704 bytes
3 files changed, 19 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 46839a6..5156a11 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -3772,6 +3772,23 @@ command to generate the output files.
</magic>
<glob pattern="*.msi"/>
</mime-type>
+ <mime-type type="application/microsoftpatch">
+ <comment>Windows Installer patch</comment>
+ <sub-class-of type="application/x-ole-storage"/>
+ <generic-icon name="package-x-generic"/>
+ <magic priority="60">
+ <match type="string" value="\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1" offset="0">
+ <match type="string" value="\x86\x10\x0c\x00\x00\x00\x00\x00\xc0\x00\x00\x00\x00\x00\x00\x46" offset="592:8192"/>
+ </match>
+ </magic>
+ <glob pattern="*.msp"/>
+ </mime-type>
+ <mime-type type="application/microsoftupdate">
+ <comment>Windows Update package</comment>
+ <sub-class-of type="application/vnd.ms-cab-compressed"/>
+ <generic-icon name="package-x-generic"/>
+ <glob pattern="*.msu"/>
+ </mime-type>
<mime-type type="application/appx">
<comment>Windows app store package</comment>
<sub-class-of type="application/zip"/>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 3149c0e..7467afc 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -535,6 +535,8 @@ test.jar application/java-archive ox
hello.pack application/x-java-pack200
# Copied from http://www.apache.org/dist/httpd/binaries/win32/apache_2.2.9-win32-x86-no_ssl-r2.msi
test.msi application/x-msi
+# Created by the Wine test suite: https://gitlab.winehq.org/wine/wine/-/blob/7c45c7c5ebb59237d568a4e5b38626422e670b63/dlls/msi/tests/patch.c#L695
+winetest-patch.msp application/microsoftpatch
# Created by building the default blank Universal Windows C++ app in Visual Studio 2022
App1_1.0.0.0_x64.appx application/appx ox
App1_1.0.0.0_x64.appxbundle application/appxbundle ox
diff --git a/tests/mime-detection/winetest-patch.msp b/tests/mime-detection/winetest-patch.msp
new file mode 100644
index 0000000..0e21ceb
--- /dev/null
+++ b/tests/mime-detection/winetest-patch.msp
Binary files differ