Suggestion by Der_Pit

This commit is contained in:
2024-08-17 16:46:04 +02:00
parent d288810d5d
commit 8c6b451564
10 changed files with 21 additions and 18 deletions
+2 -2
View File
@@ -105,8 +105,8 @@ if(UNIX AND NOT APPLE)
install(SCRIPT install.cmake) install(SCRIPT install.cmake)
else() else()
install(FILES space.nouspiro.tenmon.desktop DESTINATION "${CMAKE_INSTALL_DATADIR}/applications") install(FILES space.nouspiro.tenmon.desktop DESTINATION "${CMAKE_INSTALL_DATADIR}/applications")
install(FILES resources/space.nouspiro.tenmon.png DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/64x64/apps") install(FILES resources/space.nouspiro-tenmon.png DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/64x64/apps")
install(FILES resources/space.nouspiro.tenmon_128.png DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/128x128/apps" RENAME space.nouspiro.tenmon.png) install(FILES resources/space.nouspiro-tenmon_128.png DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/128x128/apps" RENAME space.nouspiro-tenmon.png)
endif() endif()
install(FILES space.nouspiro.tenmon.metainfo.xml DESTINATION "${CMAKE_INSTALL_DATADIR}/metainfo") install(FILES space.nouspiro.tenmon.metainfo.xml DESTINATION "${CMAKE_INSTALL_DATADIR}/metainfo")
endif(UNIX AND NOT APPLE) endif(UNIX AND NOT APPLE)
+8 -5
View File
@@ -2,22 +2,25 @@ FITS/XISF image viewer with multithreaded image loading
To get all dependencies install these packages To get all dependencies install these packages
sudo apt install qt6-base-dev qt6-declarative-dev libqt6opengl6-dev libraw-dev libexif-dev libcfitsio-dev libgsl-dev wcslib-dev cmake sudo apt install qt6-base-dev qt6-declarative-dev libqt6opengl6-dev libraw-dev libexif-dev libcfitsio-dev libgsl-dev wcslib-dev cmake libzstd-dev
on OpenSUSE on OpenSUSE
sudo zypper install gsl-devel exif-devel libraw-devel wcslib-devel libqt6-qtbase-devel sudo zypper install gsl-devel libexif-devel libraw-devel wcslib-devel qt6-base-devel qt6-qml-devel libzstd-devel
MacOS X MacOS X
To compile on MacOS install XCode first. Then install homebrew in x86_64 mode To compile on MacOS install XCode first. Then install homebrew.
with "arch -i x86_64". Building on native ARM is not supported.
homebrew install qt6 libraw cfitsio libexif libgsl wcslib homebrew install qt6 libraw cfitsio libexif libgsl wcslib
You may need to set CMAKE_PREFIX_PATH for Qt6 so CMake can find them. You may need to set CMAKE_PREFIX_PATH for Qt6 so CMake can find them.
Then to build run standard cmake First run this command to get libXISF updated
git submodule update --init --recursive
Then to build run standard cmake sequence
cmake -B build -S . cmake -B build -S .
cmake --build build cmake --build build
+1 -1
View File
@@ -1,5 +1,5 @@
<table><tr> <table><tr>
<td style="padding-right:10px"><img src=":/space.nouspiro.tenmon.png"></td> <td style="padding-right:10px"><img src=":/space.nouspiro-tenmon.png"></td>
<td><h3>Tenmon</h3> <td><h3>Tenmon</h3>
Tenmon is FITS/XISF image viewer and converter. It also index FITS keywords.<br> Tenmon is FITS/XISF image viewer and converter. It also index FITS keywords.<br>
v@GITVERSION@ Copyright © 2022 Dušan Poizl<br><br> v@GITVERSION@ Copyright © 2022 Dušan Poizl<br><br>
+3 -3
View File
@@ -1,5 +1,5 @@
find_program(XDG-DESKTOP-MENU_EXECUTABLE xdg-desktop-menu) find_program(XDG-DESKTOP-MENU_EXECUTABLE xdg-desktop-menu)
find_program(XDG-ICON-RESOURCE_EXECUTABLE xdg-icon-resource) find_program(XDG-ICON-RESOURCE_EXECUTABLE xdg-icon-resource)
execute_process(COMMAND ${XDG-DESKTOP-MENU_EXECUTABLE} install --novendor space.nouspiro.tenmon.desktop WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}) execute_process(COMMAND ${XDG-DESKTOP-MENU_EXECUTABLE} install space.nouspiro-tenmon.desktop WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
execute_process(COMMAND ${XDG-ICON-RESOURCE_EXECUTABLE} install --novendor --size 64 resources/space.nouspiro.tenmon.png space.nouspiro.tenmon WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}) execute_process(COMMAND ${XDG-ICON-RESOURCE_EXECUTABLE} install --size 64 resources/space.nouspiro-tenmon.png space.nouspiro-tenmon WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
execute_process(COMMAND ${XDG-ICON-RESOURCE_EXECUTABLE} install --novendor --size 128 resources/space.nouspiro.tenmon_128.png space.nouspiro.tenmon WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}) execute_process(COMMAND ${XDG-ICON-RESOURCE_EXECUTABLE} install --size 128 resources/space.nouspiro-tenmon_128.png space.nouspiro-tenmon WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
+1 -1
View File
@@ -21,7 +21,7 @@ int main(int argc, char *argv[])
QApplication a(argc, argv); QApplication a(argc, argv);
a.setOrganizationName("nou"); a.setOrganizationName("nou");
a.setApplicationName("Tenmon"); a.setApplicationName("Tenmon");
a.setWindowIcon(QIcon(":/space.nouspiro.tenmon.png")); a.setWindowIcon(QIcon(":/space.nouspiro-tenmon.png"));
QTranslator translator; QTranslator translator;
QTranslator translator2; QTranslator translator2;
+4 -4
View File
@@ -3,7 +3,6 @@
<file>invert.png</file> <file>invert.png</file>
<file>nuke.png</file> <file>nuke.png</file>
<file>bayer.png</file> <file>bayer.png</file>
<file>space.nouspiro.tenmon.png</file>
<file>nuke_a.png</file> <file>nuke_a.png</file>
<file>../about/tenmon</file> <file>../about/tenmon</file>
<file>../translations/tenmon_en.qm</file> <file>../translations/tenmon_en.qm</file>
@@ -16,14 +15,15 @@
<file>bggr.png</file> <file>bggr.png</file>
<file>grbg.png</file> <file>grbg.png</file>
<file>gbrg.png</file> <file>gbrg.png</file>
<file>space.nouspiro-tenmon.png</file>
</qresource> </qresource>
<qresource lang="en" prefix="/"> <qresource prefix="/" lang="en">
<file alias="help">../about/help_en</file> <file alias="help">../about/help_en</file>
</qresource> </qresource>
<qresource lang="sk" prefix="/"> <qresource prefix="/" lang="sk">
<file alias="help">../about/help_sk</file> <file alias="help">../about/help_sk</file>
</qresource> </qresource>
<qresource lang="fr" prefix="/"> <qresource prefix="/" lang="fr">
<file alias="help">../about/help_fr</file> <file alias="help">../about/help_fr</file>
</qresource> </qresource>
</RCC> </RCC>

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

@@ -1,7 +1,7 @@
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application
Exec=tenmon %U Exec=tenmon %U
Icon=space.nouspiro.tenmon Icon=space.nouspiro-tenmon
Comment=FITS Image viewer Comment=FITS Image viewer
Name=Tenmon Name=Tenmon
Categories=Graphics;2DGraphics;RasterGraphics;Viewer;Science;Astronomy Categories=Graphics;2DGraphics;RasterGraphics;Viewer;Science;Astronomy
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<component type="desktop"> <component type="desktop">
<id>space.nouspiro.tenmon</id> <id>space.nouspiro.tenmon</id>
<launchable type="desktop-id">space.nouspiro.tenmon.desktop</launchable> <launchable type="desktop-id">space.nouspiro-tenmon.desktop</launchable>
<name>Tenmon</name> <name>Tenmon</name>
<summary>FITS/XISF image viewer, converter, index and search</summary> <summary>FITS/XISF image viewer, converter, index and search</summary>
<developer id="nouspiro.space"> <developer id="nouspiro.space">