Commit bda57a5b authored by Martin Höher's avatar Martin Höher

Add Flatpak manifest

parent fcef0485
Pipeline #43172498 passed with stages
in 21 minutes and 53 seconds
......@@ -23,3 +23,6 @@ config.tests/*/*.o
config.tests/qtkeychain/qtkeychain
.qmake.stash
CMakeLists.txt.user*
/fp-app
/fp-repo
.flatpak-builder
......@@ -47,6 +47,30 @@ if(ANDROID)
endif()
set(QLMDB_WITH_BUILTIN_LMDB ON CACHE BOOL "Use built in lmdb library")
# Install data files:
set(APPLICATION_NAME OpenTodoList)
set(APPLICATION_EXECUTABLE OpenTodoList)
configure_file(
OpenTodoList.desktop.in
${CMAKE_CURRENT_BINARY_DIR}/OpenTodoList.desktop
)
include(GNUInstallDirs)
install(
DIRECTORY templates/icons/hicolor
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/
)
install(
FILES net.rpdev.OpenTodoList.appdata.xml
DESTINATION ${CMAKE_INSTALL_DATADIR}/appdata
)
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/OpenTodoList.desktop
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications
)
# Disable building translations in QtKeychain:
set(BUILD_TRANSLATIONS NO CACHE BOOL "")
# Include sub-directories:
add_subdirectory(3rdparty)
......@@ -57,9 +81,12 @@ add_subdirectory(test)
# Show other, project-related files:
file(GLOB_RECURSE OTHER_FILES
OpenTodoList.desktop.in
README.md
COPYING
Doxyfile
net.rpdev.OpenTodoList.json
net.rpdev.OpenTodoList.appdata.xml
doc/*
.gitlab-ci.yml
bin/*
......
[Desktop Entry]
Categories=Utility;
Type=Application
Exec=@APPLICATION_EXECUTABLE@
Name=@APPLICATION_NAME@
Comment=@APPLICATION_NAME@ todo list and note taking application
GenericName=Todo List and Note Taking Application
Icon=@APPLICATION_ICON_NAME@
Keywords=@APPLICATION_NAME@;todo;note;
X-GNOME-Autostart-Delay=3
......@@ -136,3 +136,10 @@ add_custom_target(opentodolist-translations
${QM_FILES}
translations-copy.qrc
)
# Install the app:
install(
TARGETS OpenTodoList
DESTINATION ${CMAKE_INSTALL_BINDIR}
)
#!/bin/bash
if [ -n "$CI" ]; then
dnf install -y --nogpgcheck \
flatpak flatpak-builder
fi
flatpak remote-add \
--if-not-exists \
flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install -y flathub org.kde.Platform//5.12
flatpak install -y flathub org.kde.Sdk//5.12
mkdir -p fp-app fp-repo
flatpak-builder \
--ccache \
--repo=fp-repo \
--subject="Build of OpenTodoList `date`" \
fp-app \
net.rpdev.OpenTodoList.json
......@@ -27,7 +27,7 @@ add_custom_target(
COMMAND
cp -r ${CMAKE_CURRENT_SOURCE_DIR}/templates/icons/* AppImageBuild/usr/share/icons/hicolor/
COMMAND
cp -r ${CMAKE_CURRENT_SOURCE_DIR}/templates/icons/64x64/apps/OpenTodoList.png AppImageBuild/
cp -r ${CMAKE_CURRENT_SOURCE_DIR}/templates/icons/hicolor/64x64/apps/OpenTodoList.png AppImageBuild/
COMMAND
${LINUXDEPLOYQT} --appimage-extract
COMMAND
......
......@@ -137,3 +137,9 @@ target_link_libraries(opentodolist-common
qt5keychain
qlmdb
)
install(
TARGETS opentodolist-common
DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>net.rpdev.OpenTodoList.desktop</id>
<name>OpenTodoList</name>
<project_license>GPL-3.0+</project_license>
<summary>Todo list and note taking application</summary>
<metadata_license>AGPL</metadata_license>
<description>
<p>OpenTodoList is an todo list and note taking application. Create todo
lists, notes and put other resources, arranging them in libraries.
These libraries can be kept locally or synchronized with services
such as NextCloud or ownCloud to sync them across your devices.</p>
</description>
<screenshots>
<screenshot type="default">
<caption>A library</caption>
<image>https://opentodolist.rpdev.net/images/v3.7/material-1.png</image>
</screenshot>
</screenshots>
<url type="homepage">https://opentodolist.rpdev.net/</url>
</component>
{
"id": "net.rpdev.OpenTodoList",
"rename-icon": "OpenTodoList",
"rename-desktop-file": "OpenTodoList.desktop",
"runtime": "org.kde.Platform",
"runtime-version": "5.12",
"sdk": "org.kde.Sdk",
"command": "OpenTodoList",
"finish-args": [
"--share=ipc",
"--socket=x11",
"--socket=wayland",
"--filesystem=host",
"--socket=pulseaudio",
"--socket=session-bus",
"--share=network"
],
"modules": [
{
"name": "libsecret",
"config-opts": [
"--disable-static",
"--disable-gtk-doc",
"--disable-manpages"
],
"sources": [
{
"type": "archive",
"url": "https://gitlab.gnome.org/GNOME/libsecret/-/archive/0.18.6/libsecret-0.18.6.tar.gz",
"sha256": "f4fa198d4e131f94d9ec84cfeaf6c124245e7ff3c0af11c76cc35332bfae5585"
}
]
},
{
"name": "opentodolist",
"buildsystem": "cmake-ninja",
"config-opts": [
"-DCMAKE_BUILD_TYPE=Release",
"-DCMAKE_INSTALL_LIBDIR=/app/lib",
"-DLIB_INSTALL_DIR=/app/lib"
],
"sources": [
{
"type": "git",
"path": "."
}
]
}
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment