Merge pull request #321 from vangel76/fix/xlsb-ods-open-with

Packaging: offer GridCraft for .xlsb and .ods files (#92)
This commit is contained in:
Brandon Thomas 2026-10-11 12:04:20 -04:00
commit 3657b2bc9b
4 changed files with 16 additions and 2 deletions

View File

@ -10,5 +10,5 @@ Terminal=false
StartupNotify=true
StartupWMClass=ai.storyteller.gridcraft
Categories=Office;Spreadsheet;
MimeType=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.ms-excel.sheet.macroEnabled.12;text/csv;text/tab-separated-values;
Keywords=spreadsheet;workbook;sheet;table;formula;chart;pivot;xlsx;csv;tsv;excel;
MimeType=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.ms-excel.sheet.macroEnabled.12;application/vnd.ms-excel.sheet.binary.macroEnabled.12;application/vnd.oasis.opendocument.spreadsheet;text/csv;text/tab-separated-values;
Keywords=spreadsheet;workbook;sheet;table;formula;chart;pivot;xlsx;xlsb;ods;csv;tsv;excel;

View File

@ -56,6 +56,8 @@
<binary>gridcraft-cli</binary>
<mediatype>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mediatype>
<mediatype>application/vnd.ms-excel.sheet.macroEnabled.12</mediatype>
<mediatype>application/vnd.ms-excel.sheet.binary.macroEnabled.12</mediatype>
<mediatype>application/vnd.oasis.opendocument.spreadsheet</mediatype>
<mediatype>text/csv</mediatype>
<mediatype>text/tab-separated-values</mediatype>
</provides>

View File

@ -13,6 +13,15 @@
<sub-class-of type="application/zip"/>
<glob pattern="*.xlsm"/>
</mime-type>
<mime-type type="application/vnd.ms-excel.sheet.binary.macroEnabled.12">
<comment>Excel binary workbook</comment>
<glob pattern="*.xlsb"/>
</mime-type>
<mime-type type="application/vnd.oasis.opendocument.spreadsheet">
<comment>OpenDocument spreadsheet</comment>
<sub-class-of type="application/zip"/>
<glob pattern="*.ods"/>
</mime-type>
<mime-type type="text/csv">
<comment>CSV document</comment>
<sub-class-of type="text/plain"/>

View File

@ -182,6 +182,9 @@
ignored (WiX rejects an empty Value, so it repeats the ProgId). -->
<RegistryValue Root="HKLM" Key="Software\Classes\.xlsx\OpenWithProgids" Name="GridCraft.Workbook" Value="GridCraft.Workbook" Type="string" />
<RegistryValue Root="HKLM" Key="Software\Classes\.xlsm\OpenWithProgids" Name="GridCraft.Workbook" Value="GridCraft.Workbook" Type="string" />
<!-- .xlsb and .ods are imported (data only) into a new workbook that saves as .xlsx. -->
<RegistryValue Root="HKLM" Key="Software\Classes\.xlsb\OpenWithProgids" Name="GridCraft.Workbook" Value="GridCraft.Workbook" Type="string" />
<RegistryValue Root="HKLM" Key="Software\Classes\.ods\OpenWithProgids" Name="GridCraft.Workbook" Value="GridCraft.Workbook" Type="string" />
<RegistryValue Root="HKLM" Key="Software\Classes\.csv\OpenWithProgids" Name="GridCraft.TextData" Value="GridCraft.TextData" Type="string" />
<RegistryValue Root="HKLM" Key="Software\Classes\.tsv\OpenWithProgids" Name="GridCraft.TextData" Value="GridCraft.TextData" Type="string" />