From e5c5670f24538bf1bc82efc982f4bf8e0bb71a28 Mon Sep 17 00:00:00 2001 From: ispyisail Date: Thu, 15 Oct 2026 06:20:57 +1300 Subject: [PATCH] Register .qetz in the remaining packaging files - register_filetypes.bat (portable Windows build, two copies): .qetz opens with QElectroTech like .qet. - AppStream metadata: lists the four file types QElectroTech opens. - macOS Info.plist: declares the .qet and .qetz types (UTIs), which recent macOS needs to associate an extension with the application. Review of #1472 (scorpio810, point 3). Co-Authored-By: Claude Opus 5.5 --- .../nsis_base/files/register_filetypes.bat | 4 ++ misc/Info.plist | 52 +++++++++++++++++++ misc/qelectrotech.appdata.xml | 6 +++ misc/register_filetypes.bat | 4 ++ 4 files changed, 66 insertions(+) diff --git a/build-aux/windows/nsis_base/files/register_filetypes.bat b/build-aux/windows/nsis_base/files/register_filetypes.bat index d0f2d69be..7de7e5266 100644 --- a/build-aux/windows/nsis_base/files/register_filetypes.bat +++ b/build-aux/windows/nsis_base/files/register_filetypes.bat @@ -69,6 +69,10 @@ set reg_file=qet_install_file_associations.reg echo [HKEY_CURRENT_USER\Software\Classes\qet_diagram_file\shell\open\command] echo @="\"%final_qet_exe%\" \"%%1\"" + rem *.qetz (zipped project): the same file type as *.qet + echo [HKEY_CURRENT_USER\Software\Classes\.qetz] + echo @="qet_diagram_file" + rem association de fichier *.elmt echo [HKEY_CURRENT_USER\Software\Classes\.elmt] echo @="qet_element_file" diff --git a/misc/Info.plist b/misc/Info.plist index c41a2f03f..cb08aa87d 100644 --- a/misc/Info.plist +++ b/misc/Info.plist @@ -34,10 +34,62 @@ qet qetz + LSItemContentTypes + + org.qelectrotech.project + org.qelectrotech.project-zip + + LSHandlerRank + Owner CFBundleTypeRole Editor + UTExportedTypeDeclarations + + + UTTypeIdentifier + org.qelectrotech.project + UTTypeDescription + QElectroTech project + UTTypeConformsTo + + public.xml + + UTTypeIconFile + qet + UTTypeTagSpecification + + public.filename-extension + + qet + + public.mime-type + application/x-qet-project + + + + UTTypeIdentifier + org.qelectrotech.project-zip + UTTypeDescription + QElectroTech zipped project + UTTypeConformsTo + + public.zip-archive + + UTTypeIconFile + qet + UTTypeTagSpecification + + public.filename-extension + + qetz + + public.mime-type + application/x-qet-project+zip + + + CFBundleExecutable qelectrotech CFBundleIconFile diff --git a/misc/qelectrotech.appdata.xml b/misc/qelectrotech.appdata.xml index 6bc42726d..534057574 100644 --- a/misc/qelectrotech.appdata.xml +++ b/misc/qelectrotech.appdata.xml @@ -37,6 +37,12 @@ Elektrik şeması düzenleyici Редактор електричних схем 电气图编辑器 + + application/x-qet-project + application/x-qet-project+zip + application/x-qet-element + application/x-qet-titleblock + diff --git a/misc/register_filetypes.bat b/misc/register_filetypes.bat index d0f2d69be..7de7e5266 100755 --- a/misc/register_filetypes.bat +++ b/misc/register_filetypes.bat @@ -69,6 +69,10 @@ set reg_file=qet_install_file_associations.reg echo [HKEY_CURRENT_USER\Software\Classes\qet_diagram_file\shell\open\command] echo @="\"%final_qet_exe%\" \"%%1\"" + rem *.qetz (zipped project): the same file type as *.qet + echo [HKEY_CURRENT_USER\Software\Classes\.qetz] + echo @="qet_diagram_file" + rem association de fichier *.elmt echo [HKEY_CURRENT_USER\Software\Classes\.elmt] echo @="qet_element_file"