Skip to content

Commit

Permalink
prepare for flatpak build
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHal committed Aug 4, 2022
1 parent 56812e3 commit 3a6b0c6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
13 changes: 8 additions & 5 deletions QtPMbrowser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,15 @@ endif()
#if(CMAKE_SYSTEM_NAME EQUAL "Linux")
if(UNIX)
# install dektop file and icons
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/linux_deploy/halaszovich-pmbrowser.desktop" DESTINATION
set(MY_APP_ID "de.halaszovich.PMbrowser")
configure_file(linux_deploy/de.halaszovich.pmbrowser.desktop.in ${MY_APP_ID}.desktop)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${MY_APP_ID}.desktop" DESTINATION
"${CMAKE_INSTALL_DATADIR}/applications")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/linux_deploy/halaszovich-pmbrowser128.png" DESTINATION
"${CMAKE_INSTALL_DATADIR}/icons/hicolor/128x128/apps" RENAME halaszovich-pmbrowser.png)
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/linux_deploy/halaszovich-pmbrowser256.png" DESTINATION
"${CMAKE_INSTALL_DATADIR}/icons/hicolor/256x256/apps" RENAME halaszovich-pmbrowser.png)
install(FILES "linux_deploy/de.halaszovich.PMbrowser.appdata.xml" DESTINATION "${CMAKE_INSTALL_DATADIR}/metainfo")
# install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/linux_deploy/halaszovich-pmbrowser128.png" DESTINATION
# "${CMAKE_INSTALL_DATADIR}/icons/hicolor/128x128/apps" RENAME ${MY_APP_ID}.png)
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/linux_deploy/halaszovich-pmbrowser256.png" DESTINATION
"${CMAKE_INSTALL_DATADIR}/icons/hicolor/256x256/apps" RENAME ${MY_APP_ID}.png)
endif()


21 changes: 21 additions & 0 deletions QtPMbrowser/linux_deploy/de.halaszovich.PMbrowser.appdata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>de.halaszovich.PMbrowser</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0</project_license>
<name>PM browser</name>
<summary>Open, browse and export PM dat files</summary>
<description>
<p>A tool for electrophysiologists. Open files generated by PatchMaster (Next) and export to IgorPro. Handels .dat files starting from PM version 2.0, in any byte order.</p>
</description>
<launchable type="desktop-id">de.halaszovich.PMbrowser.desktop</launchable>
<url type="homepage">https://www.halaszovich.de/pmbrowser/html/index.html</url>
<screenshots>
<screenshot type="default">
<image>https://www.halaszovich.de/pmbrowser/html/_images/Screenshot_tour_step2.png</image>
</screenshot>
</screenshots>
<provides>
<id>de.halaszovich.PMbrowser.desktop</id>
</provides>
</component>
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Terminal=false
Categories=Science
Exec=QtPMbrowser %u
#MimeType=application/octet-stream
Icon=halaszovich-pmbrowser
Icon=${MY_APP_ID}

0 comments on commit 3a6b0c6

Please sign in to comment.