-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
147 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,9 @@ | |
|
||
configure_file(${APP_ID}.json ${APP_ID}.json) | ||
|
||
|
||
# | ||
# Sample build | ||
# | ||
|
||
add_custom_target(flatpak-binary | ||
COMMAND rm -rf flatpakBuildDirectory .flatpak-builder | ||
COMMAND flatpak-builder flatpakBuildDirectory de.akaflieg_freiburg.cavok.add_hours_and_minutes.json | ||
|
@@ -23,11 +21,20 @@ add_custom_target(flatpak-binary | |
COMMENT "Generating flatpak binary" | ||
) | ||
|
||
# | ||
# Run linter on sample build | ||
# | ||
add_custom_target(flatpak-lint | ||
COMMAND flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest de.akaflieg_freiburg.cavok.add_hours_and_minutes.json | ||
COMMAND flatpak run --command=flatpak-builder-lint org.flatpak.Builder appstream ../../metadata/de.akaflieg_freiburg.cavok.add_hours_and_minutes.appdata.xml | ||
COMMAND flatpak run --command=flatpak-builder-lint org.flatpak.Builder builddir flatpakBuildDirectory | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | ||
COMMENT "Linting flatpak build" | ||
) | ||
|
||
# | ||
# Publication | ||
# | ||
|
||
add_custom_target(flatpak-publish | ||
COMMAND rm -rf de.akaflieg_freiburg.cavok.add_hours_and_minutes | ||
COMMAND git clone --depth 1 --branch upstream [email protected]:flathub/de.akaflieg_freiburg.cavok.add_hours_and_minutes.git | ||
|
256 changes: 127 additions & 129 deletions
256
packaging/flatpak/de.akaflieg_freiburg.cavok.add_hours_and_minutes.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,137 +1,135 @@ | ||
{ | ||
"app-id": "${APP_ID}", | ||
"runtime": "org.freedesktop.Platform", | ||
"runtime-version": "23.08", | ||
"sdk": "org.freedesktop.Sdk", | ||
"command": "addhoursandminutes", | ||
"finish-args": [ | ||
"--share=ipc", | ||
"--socket=x11", | ||
"--socket=wayland", | ||
"--device=dri" | ||
], | ||
"cleanup": [ | ||
"/app/qtTemporary", | ||
"/qtTemporary" | ||
], | ||
"modules": [ | ||
"app-id": "${APP_ID}", | ||
"runtime": "org.freedesktop.Platform", | ||
"runtime-version": "23.08", | ||
"sdk": "org.freedesktop.Sdk", | ||
"command": "addhoursandminutes", | ||
"finish-args": [ | ||
"--share=ipc", | ||
"--socket=x11", | ||
"--device=dri" | ||
], | ||
"cleanup": [ | ||
"/app/qtTemporary", | ||
"/qtTemporary" | ||
], | ||
"modules": [ | ||
{ | ||
"name": "qtbase", | ||
"sources": [ | ||
{ | ||
"name": "qtbase", | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/qt/qtbase.git", | ||
"tag": "v${Qt6_VERSION}" | ||
} | ||
], | ||
"buildsystem": "cmake-ninja", | ||
"config-opts": [ | ||
"-DCMAKE_BUILD_TYPE=Release", | ||
"-DCMAKE_INSTALL_PREFIX:PATH=/app/qtTemporary", | ||
"-DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF", | ||
"-DQT_BUILD_TESTS_BY_DEFAULT=OFF" | ||
] | ||
}, | ||
"type": "git", | ||
"url": "https://github.com/qt/qtbase.git", | ||
"tag": "v${Qt6_VERSION}" | ||
} | ||
], | ||
"buildsystem": "cmake-ninja", | ||
"config-opts": [ | ||
"-DCMAKE_BUILD_TYPE=Release", | ||
"-DCMAKE_INSTALL_PREFIX:PATH=/app/qtTemporary", | ||
"-DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF", | ||
"-DQT_BUILD_TESTS_BY_DEFAULT=OFF" | ||
] | ||
}, | ||
{ | ||
"name": "qtsvg", | ||
"sources": [ | ||
{ | ||
"name": "qtsvg", | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/qt/qtsvg.git", | ||
"tag": "v${Qt6_VERSION}" | ||
} | ||
], | ||
"buildsystem": "cmake-ninja", | ||
"config-opts": [ | ||
"-DCMAKE_BUILD_TYPE:STRING=Release", | ||
"-DCMAKE_FIND_ROOT_PATH:PATH=/app/qtTemporary", | ||
"-DCMAKE_INSTALL_PREFIX:PATH=/app/qtTemporary" | ||
] | ||
}, | ||
"type": "git", | ||
"url": "https://github.com/qt/qtsvg.git", | ||
"tag": "v${Qt6_VERSION}" | ||
} | ||
], | ||
"buildsystem": "cmake-ninja", | ||
"config-opts": [ | ||
"-DCMAKE_BUILD_TYPE:STRING=Release", | ||
"-DCMAKE_FIND_ROOT_PATH:PATH=/app/qtTemporary", | ||
"-DCMAKE_INSTALL_PREFIX:PATH=/app/qtTemporary" | ||
] | ||
}, | ||
{ | ||
"name": "qttools", | ||
"sources": [ | ||
{ | ||
"name": "qttools", | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/qt/qttools.git", | ||
"tag": "v${Qt6_VERSION}" | ||
} | ||
], | ||
"buildsystem": "cmake-ninja", | ||
"config-opts": [ | ||
"-DCMAKE_BUILD_TYPE:STRING=Release", | ||
"-DCMAKE_FIND_ROOT_PATH:PATH=/app/qtTemporary", | ||
"-DCMAKE_INSTALL_PREFIX:PATH=/app/qtTemporary", | ||
"-DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF", | ||
"-DQT_BUILD_TESTS_BY_DEFAULT=OFF", | ||
"-DFEATURE_assistant=ON", | ||
"-DFEATURE_clang=OFF", | ||
"-DFEATURE_clangcpp=OFF", | ||
"-DFEATURE_designer=ON", | ||
"-DFEATURE_distancefieldgenerator=OFF", | ||
"-DFEATURE_kmap2qmap=OFF", | ||
"-DFEATURE_macdeployqt=OFF", | ||
"-DFEATURE_pixeltool=OFF", | ||
"-DFEATURE_pkg_config=OFF", | ||
"-DFEATURE_qdbus=OFF", | ||
"-DFEATURE_qev=OFF", | ||
"-DFEATURE_qtattributionsscanner=OFF", | ||
"-DFEATURE_qtdiag=OFF", | ||
"-DFEATURE_qtplugininfo=OFF", | ||
"-DFEATURE_windeployqt=OFF" | ||
] | ||
}, | ||
"type": "git", | ||
"url": "https://github.com/qt/qttools.git", | ||
"tag": "v${Qt6_VERSION}" | ||
} | ||
], | ||
"buildsystem": "cmake-ninja", | ||
"config-opts": [ | ||
"-DCMAKE_BUILD_TYPE:STRING=Release", | ||
"-DCMAKE_FIND_ROOT_PATH:PATH=/app/qtTemporary", | ||
"-DCMAKE_INSTALL_PREFIX:PATH=/app/qtTemporary", | ||
"-DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF", | ||
"-DQT_BUILD_TESTS_BY_DEFAULT=OFF", | ||
"-DFEATURE_assistant=ON", | ||
"-DFEATURE_clang=OFF", | ||
"-DFEATURE_clangcpp=OFF", | ||
"-DFEATURE_designer=ON", | ||
"-DFEATURE_distancefieldgenerator=OFF", | ||
"-DFEATURE_kmap2qmap=OFF", | ||
"-DFEATURE_macdeployqt=OFF", | ||
"-DFEATURE_pixeltool=OFF", | ||
"-DFEATURE_pkg_config=OFF", | ||
"-DFEATURE_qdbus=OFF", | ||
"-DFEATURE_qev=OFF", | ||
"-DFEATURE_qtattributionsscanner=OFF", | ||
"-DFEATURE_qtdiag=OFF", | ||
"-DFEATURE_qtplugininfo=OFF", | ||
"-DFEATURE_windeployqt=OFF" | ||
] | ||
}, | ||
{ | ||
"name": "qtshadertools", | ||
"sources": [ | ||
{ | ||
"name": "qtshadertools", | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/qt/qtshadertools.git", | ||
"tag": "v${Qt6_VERSION}" | ||
} | ||
], | ||
"buildsystem": "cmake-ninja", | ||
"config-opts": [ | ||
"-DCMAKE_BUILD_TYPE:STRING=Release", | ||
"-DCMAKE_FIND_ROOT_PATH:PATH=/app/qtTemporary", | ||
"-DCMAKE_INSTALL_PREFIX:PATH=/app/qtTemporary" | ||
|
||
] | ||
}, | ||
"type": "git", | ||
"url": "https://github.com/qt/qtshadertools.git", | ||
"tag": "v${Qt6_VERSION}" | ||
} | ||
], | ||
"buildsystem": "cmake-ninja", | ||
"config-opts": [ | ||
"-DCMAKE_BUILD_TYPE:STRING=Release", | ||
"-DCMAKE_FIND_ROOT_PATH:PATH=/app/qtTemporary", | ||
"-DCMAKE_INSTALL_PREFIX:PATH=/app/qtTemporary" | ||
] | ||
}, | ||
{ | ||
"name": "qtdeclarative", | ||
"sources": [ | ||
{ | ||
"name": "qtdeclarative", | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/qt/qtdeclarative.git", | ||
"tag": "v${Qt6_VERSION}" | ||
} | ||
], | ||
"buildsystem": "cmake-ninja", | ||
"config-opts": [ | ||
"-DCMAKE_BUILD_TYPE:STRING=Release", | ||
"-DCMAKE_FIND_ROOT_PATH:PATH=/app/qtTemporary", | ||
"-DCMAKE_INSTALL_PREFIX:PATH=/app/qtTemporary", | ||
"-DFEATURE_qml_debug=OFF", | ||
"-DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF", | ||
"-DQT_BUILD_TESTS_BY_DEFAULT=OFF" | ||
] | ||
}, | ||
"type": "git", | ||
"url": "https://github.com/qt/qtdeclarative.git", | ||
"tag": "v${Qt6_VERSION}" | ||
} | ||
], | ||
"buildsystem": "cmake-ninja", | ||
"config-opts": [ | ||
"-DCMAKE_BUILD_TYPE:STRING=Release", | ||
"-DCMAKE_FIND_ROOT_PATH:PATH=/app/qtTemporary", | ||
"-DCMAKE_INSTALL_PREFIX:PATH=/app/qtTemporary", | ||
"-DFEATURE_qml_debug=OFF", | ||
"-DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF", | ||
"-DQT_BUILD_TESTS_BY_DEFAULT=OFF" | ||
] | ||
}, | ||
{ | ||
"name": "addHoursAndMinutes", | ||
"buildsystem": "cmake-ninja", | ||
"sources": [ | ||
{ | ||
"name": "addHoursAndMinutes", | ||
"buildsystem": "cmake-ninja", | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/Akaflieg-Freiburg/addhoursandminutes.git", | ||
"commit": "${GIT_COMMIT}" | ||
} | ||
], | ||
"buildsystem": "cmake-ninja", | ||
"config-opts": [ | ||
"-DCMAKE_BUILD_TYPE:STRING=Release", | ||
"-DCMAKE_FIND_ROOT_PATH:PATH=/app/qtTemporary" | ||
] | ||
"type": "git", | ||
"url": "https://github.com/Akaflieg-Freiburg/addhoursandminutes.git", | ||
"commit": "${GIT_COMMIT}" | ||
} | ||
] | ||
} | ||
], | ||
"buildsystem": "cmake-ninja", | ||
"config-opts": [ | ||
"-DCMAKE_BUILD_TYPE:STRING=Release", | ||
"-DCMAKE_FIND_ROOT_PATH:PATH=/app/qtTemporary" | ||
] | ||
} | ||
] | ||
} |