Skip to content

Commit

Permalink
[bot] updates mime-info database from upstream (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: ju1ius <[email protected]>
  • Loading branch information
github-actions[bot] and ju1ius authored Apr 8, 2024
1 parent 7f14fe6 commit 69c0347
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/Resources/db/globs.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
'sda' => [new GlobLiteral('application/vnd.stardivision.draw', 50, 5)],
'sdd' => [new GlobLiteral('application/vnd.stardivision.impress', 50, 5)],
'sdp' => [new GlobLiteral('application/vnd.stardivision.impress', 50, 5), new GlobLiteral('application/sdp', 50, 5)],
'smd' => [new GlobLiteral('application/vnd.stardivision.mail', 50, 5), new GlobLiteral('application/x-genesis-rom', 50, 5)],
'smd' => [new GlobLiteral('application/x-genesis-rom', 50, 5), new GlobLiteral('application/vnd.stardivision.mail', 10, 5)],
'smf' => [new GlobLiteral('application/vnd.stardivision.math', 50, 5)],
'sdw' => [new GlobLiteral('application/vnd.stardivision.writer', 50, 5)],
'vor' => [new GlobLiteral('application/vnd.stardivision.writer', 50, 5)],
Expand Down Expand Up @@ -319,6 +319,7 @@
'agb' => [new GlobLiteral('application/x-gba-rom', 50, 5)],
'vb' => [new GlobLiteral('application/x-virtual-boy-rom', 50, 4), new GlobLiteral('text/x-vb', 50, 4)],
'gen' => [new GlobLiteral('application/x-genesis-rom', 50, 5)],
'md' => [new GlobLiteral('text/markdown', 50, 4), new GlobLiteral('application/x-genesis-rom', 10, 4)],
'sgd' => [new GlobLiteral('application/x-genesis-rom', 50, 5)],
'32x' => [new GlobLiteral('application/x-genesis-32x-rom', 50, 5)],
'mdx' => [new GlobLiteral('application/x-genesis-32x-rom', 50, 5)],
Expand Down Expand Up @@ -907,7 +908,6 @@
'log' => [new GlobLiteral('text/x-log', 50, 5)],
'mk' => [new GlobLiteral('text/x-makefile', 50, 4)],
'mak' => [new GlobLiteral('text/x-makefile', 50, 5)],
'md' => [new GlobLiteral('text/markdown', 50, 4)],
'mkd' => [new GlobLiteral('text/markdown', 50, 5)],
'markdown' => [new GlobLiteral('text/markdown', 50, 10)],
'moc' => [new GlobLiteral('text/x-moc', 50, 5)],
Expand Down Expand Up @@ -1069,6 +1069,8 @@
'snap' => [new GlobLiteral('application/vnd.snap', 50, 6)],
'3mf' => [new GlobLiteral('model/3mf', 50, 5)],
'stl' => [new GlobLiteral('model/stl', 50, 5)],
'step' => [new GlobLiteral('model/step', 50, 6)],
'stp' => [new GlobLiteral('model/step', 50, 5)],
'gcode' => [new GlobLiteral('text/x.gcode', 50, 7)],
'gx' => [new GlobLiteral('text/x-gcode-gx', 50, 4)],
'fds' => [new GlobLiteral('application/x-fds-disk', 50, 5)],
Expand Down
1 change: 1 addition & 0 deletions src/Resources/db/icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@
'application/vnd.appimage' => 'application-x-executable',
'model/3mf' => 'image-x-generic',
'model/stl' => 'image-x-generic',
'model/step' => 'image-x-generic',
'text/x.gcode' => 'text-x-generic',
'application/x-appleworks-document' => 'x-office-document',
'application/x-pyspread-spreadsheet' => 'x-office-spreadsheet',
Expand Down
5 changes: 4 additions & 1 deletion src/Resources/db/magic.php
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@
new MagicMatch(256, 1, 'SEGA 32X', '', 0),
]),
new MagicRule('application/x-genesis-rom', 50, 645, [
new MagicRegex('~(?n)\A(.{256}SEGA GENESIS|.{256}SEGA MEGA DRIVE|.{256}SEGA_MEGA_DRIVE|.{640}EAGN|.{640}EAMG)~Ss'),
new MagicRegex('~(?n)\A(.{256}SEGA GENESIS|.{256}SEGA MEGA DRIVE|.{256}SEGA_MEGA_DRIVE|.{256}SEGA SSF|.{640}EAGN|.{640}EAMG)~Ss'),
]),
new MagicRule('application/x-gettext-translation', 50, 5, [
new MagicRegex('~(?n)\A(\xDE\x12\x04\x95|\x95\x04\x12\xDE)~Ss'),
Expand Down Expand Up @@ -1283,6 +1283,9 @@
new MagicRule('model/obj', 50, 264, [
new MagicRegex('~(?n)\A(.{0,64} OBJ File\: \'|.{0,256}mtllib )~Ss'),
]),
new MagicRule('model/step', 50, 14, [
new MagicMatch(0, 1, 'ISO-10303-21;', '', 0),
]),
new MagicRule('model/stl', 50, 6, [
new MagicRegex('~(?n)\A(solid|SOLID)~Ss'),
]),
Expand Down
14 changes: 13 additions & 1 deletion src/Resources/mime-info/freedesktop.org.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ command to generate the output files.
</mime-type>
<mime-type type="application/vnd.stardivision.mail">
<comment>StarMail email</comment>
<glob pattern="*.smd"/>
<glob pattern="*.smd" weight="10"/>
</mime-type>
<mime-type type="application/vnd.stardivision.math">
<comment>StarMath formula</comment>
Expand Down Expand Up @@ -2591,11 +2591,13 @@ command to generate the output files.
<match type="string" value="SEGA GENESIS" offset="256"/>
<match type="string" value="SEGA MEGA DRIVE" offset="256"/>
<match type="string" value="SEGA_MEGA_DRIVE" offset="256"/>
<match type="string" value="SEGA SSF" offset="256"/>
<match type="string" value="EAGN" offset="640"/>
<match type="string" value="EAMG" offset="640"/>
</magic>
<glob pattern="*.gen"/>
<glob pattern="*.smd"/>
<glob pattern="*.md" weight="10"/>
<glob pattern="*.sgd"/>
</mime-type>
<mime-type type="application/x-genesis-32x-rom">
Expand Down Expand Up @@ -8316,6 +8318,16 @@ command to generate the output files.
<alias type="model/x.stl-binary"/>
</mime-type>

<mime-type type="model/step">
<comment>STEP 3D model</comment>
<generic-icon name="image-x-generic"/>
<glob pattern="*.step"/>
<glob pattern="*.stp"/>
<magic>
<match type="string" value="ISO-10303-21;" offset="0"/>
</magic>
</mime-type>

<mime-type type="text/x.gcode">
<comment>G-code file</comment>
<sub-class-of type="text/plain"/>
Expand Down

0 comments on commit 69c0347

Please sign in to comment.