Skip to content

Commit

Permalink
Merge pull request #78 from Mailaender/flatpak
Browse files Browse the repository at this point in the history
Added Flatpak support
  • Loading branch information
dridk authored Dec 19, 2022
2 parents bf7072f + c7b926d commit 2fcb98e
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
- name: install-deps
run: sudo apt-get install qt5-default libqt5svg5-dev
- name: run qmake
run: qmake cutepeaks.pro
run: qmake cutepeaks.pro PREFIX=/usr
- name: make
run: make -j$(nproc)
run: make -j$(nproc) PREFIX=/usr
- name: make install
run: make INSTALL_ROOT=../appdir -j$(nproc) install ; find appdir/
- name: download linuxdeployqt
Expand Down
9 changes: 6 additions & 3 deletions cutepeaks.pro
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ linux-g++ {

desktop.path = $$PREFIX/share/applications/
desktop.files += CutePeaks.desktop
icon512.path = $$PREFIX/share/icons/hicolor/512x512/apps
icon512.files += cutepeaks.png
icon64.path = $$PREFIX/share/icons/hicolor/64x64/apps
icon64.files += cutepeaks.png
icon256.path = $$PREFIX/share/icons/hicolor/256x256/apps
icon256.files += icon/256/cutepeaks.png

INSTALLS += icon512
INSTALLS += icon64
INSTALLS += icon256
INSTALLS += desktop
INSTALLS += target
}
Expand Down
Binary file added icon/256/cutepeaks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions io.github.labsquare.CutePeaks.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version='1.0' encoding='utf-8'?>
<component type="desktop">
<!--Created with jdAppdataEdit 5.1-->
<id>io.github.labsquare.CutePeaks</id>
<name>CutePeaks</name>
<summary>standalone Sanger trace viewer</summary>
<developer_name>Labsquare</developer_name>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0+</project_license>
<description>
<p>A simple viewer for Sanger trace file. Supports AB1 and SCF 3.0 file formats. It has regular expression pattern finder and can export trace as SVG vector image.</p>
</description>
<screenshots>
<screenshot type="default">
<image type="source">https://raw.githubusercontent.com/labsquare/CutePeaks/master/cutepeaks.gif</image>
</screenshot>
</screenshots>
<releases>
<release version="0.2.3" date="2021-07-30" type="stable">
<url>https://github.com/labsquare/CutePeaks/releases/tag/0.2.3</url>
</release>
<release version="0.2.2" date="2018-01-31" type="stable">
<url>https://github.com/labsquare/CutePeaks/releases/tag/0.2.2</url>
</release>
<release version="0.1.0" date="2017-06-07" type="stable">
<url>https://github.com/labsquare/CutePeaks/releases/tag/0.1.0</url>
</release>
</releases>
<url type="homepage">https://labsquare.github.io/CutePeaks/</url>
<url type="bugtracker">https://github.com/labsquare/CutePeaks/issues</url>
<content_rating type="oars-1.1"/>
</component>
11 changes: 7 additions & 4 deletions src/src.pro
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ RESOURCES += \

unix {
desktop.files += ../cutepeaks.desktop
desktop.path = /usr/share/applications/
desktop.path = $$PREFIX/share/applications/

icons.files += ../cutepeaks.png
icons.path = /usr/share/icons/hicolor/64x64/apps
icons.path = $$PREFIX/share/icons/hicolor/64x64/apps

target.path = /usr/bin/
appdata.files += ../io.github.labsquare.CutePeaks.metainfo.xml
appdata.path = $$PREFIX/share/metainfo

INSTALLS += desktop icons target
target.path = $$PREFIX/bin/

INSTALLS += desktop icons appdata target



Expand Down

0 comments on commit 2fcb98e

Please sign in to comment.