Files
create/src/XDGData/CMakeLists.txt
forbes 1b01762a1c
All checks were successful
Build and Test / build (pull_request) Successful in 29m26s
chore: rebrand XDGData and icon installs to Kindred Create (#367)
- Replace org.freecad.FreeCAD.desktop with kindred-create.desktop
- Replace org.freecad.FreeCAD.metainfo.xml.in with Kindred Create
  metainfo (new description, Kindred URLs, kindred-create app ID)
- Replace org.freecad.FreeCAD.xml with kindred-create.xml (adds .kc
  MIME type alongside .fcstd)
- Replace FreeCAD.thumbnailer.in with kindred-create.thumbnailer.in
- Update XDGData/CMakeLists.txt for new filenames
- Update src/Gui/CMakeLists.txt icon installs: use kindred-create
  icons from resources/ (all sizes 16-512 + SVG) instead of renaming
  freecad-icon-*.png to org.freecad.FreeCAD.png
- Update freecad-thumbnailer.in default icon to kindred-create.png
- Update AppImage create_bundle.sh to use kindred-create desktop/icon

Remaining org.freecad.FreeCAD references are macOS bundle IDs
(MainWindow.cpp, MacAppBundle/) and packaging fallbacks — separate
rebranding tasks.
2026-03-02 08:06:36 -06:00

50 lines
1.2 KiB
CMake

include(GNUInstallDirs)
if(NOT DEFINED APPDATA_RELEASE_DATE)
if(EXISTS "${CMAKE_SOURCE_DIR}/.git")
execute_process(COMMAND git log -1 --pretty=%cd --date=short
OUTPUT_VARIABLE APPDATA_RELEASE_DATE
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
OUTPUT_STRIP_TRAILING_WHITESPACE)
else()
string(TIMESTAMP APPDATA_RELEASE_DATE "%Y-%m-%d")
endif()
endif()
configure_file(
kindred-create.metainfo.xml.in
${CMAKE_BINARY_DIR}/kindred-create.metainfo.xml
)
install(
FILES ${CMAKE_BINARY_DIR}/kindred-create.metainfo.xml
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo
)
install(
FILES kindred-create.desktop
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications
)
install(
FILES kindred-create.xml
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/mime/packages
)
configure_file(
kindred-create.thumbnailer.in
${CMAKE_BINARY_DIR}/kindred-create.thumbnailer
)
install(
FILES ${CMAKE_BINARY_DIR}/kindred-create.thumbnailer
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/thumbnailers
)
configure_file(
${CMAKE_SOURCE_DIR}/src/Tools/freecad-thumbnailer.in
${CMAKE_BINARY_DIR}/freecad-thumbnailer
)
install(
PROGRAMS ${CMAKE_BINARY_DIR}/freecad-thumbnailer
TYPE BIN
)