Skip to content

Commit

Permalink
Merge pull request #529 from matterhorn103/flatpak-6.8
Browse files Browse the repository at this point in the history
Use Qt/KDE runtime 6.8 for Flatpak test builds
  • Loading branch information
ghutchis authored Nov 17, 2024
2 parents efc404c + 84ed40c commit db86caf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
- name: Configure flatpak
run: flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo

- name: Install flatpak-builder
run: flatpak --user install --or-update --noninteractive flathub org.flatpak.Builder

- name: Configure git
run: git config --global protocol.file.allow always
# Have to do this because for a while git's handling of submodules was broken
Expand Down Expand Up @@ -81,7 +84,7 @@ jobs:
run: mv openchemistry/avogadroapp/flatpak/org.openchemistry.Avogadro2.yaml ./

- name: Build with flatpak-builder
run: flatpak-builder --force-clean --user --install-deps-from=flathub --arch=x86_64 --default-branch=test --repo=repo builddir org.openchemistry.Avogadro2.yaml
run: dbus-run-session flatpak run org.flatpak.Builder --force-clean --user --install-deps-from=flathub --arch=x86_64 --default-branch=test --repo=repo builddir org.openchemistry.Avogadro2.yaml

- name: Create bundle
run: flatpak build-bundle repo Avogadro2.flatpak org.openchemistry.Avogadro2 test
Expand Down
17 changes: 12 additions & 5 deletions flatpak/org.openchemistry.Avogadro2.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
app-id: org.openchemistry.Avogadro2
runtime: org.kde.Platform
sdk: org.kde.Sdk
runtime-version: "6.7"
runtime-version: "6.8"
command: avogadro2
appdata-license: BSD-3-Clause AND GPL-2.0-only
finish-args:
Expand All @@ -11,7 +11,6 @@ finish-args:
- --device=dri # OpenGL rendering
- --share=network # For plugin downloads
cleanup:
- /include
- /lib/cmake
- '*.la'
- '*.a'
Expand All @@ -24,6 +23,10 @@ modules:
- name: rapidjson
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DRAPIDJSON_BUILD_DOC=OFF
- -DRAPIDJSON_BUILD_EXAMPLES=OFF
- -DRAPIDJSON_BUILD_TESTS=OFF
sources:
- type: git
url: https://github.com/Tencent/rapidjson.git
Expand All @@ -38,7 +41,7 @@ modules:
no-make-install: true # Superbuild doesn't have `install` command defined
config-opts:
# Match GitHub builds as much as possible, which generally means using defaults
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_BUILD_TYPE=Debug
- -DUSE_VTK=ON
- -DBUILD_GPL_PLUGINS=ON
- -DBUILD_MOLEQUEUE=OFF
Expand Down Expand Up @@ -107,5 +110,9 @@ modules:

post-install:
# Manually copy contents of prefix dir over into main build dir
# -a option is recursive should preserve permissions and symlinks
- cp -a prefix/* -t ${FLATPAK_DEST}/
# -a option is recursive, should preserve permissions and symlinks
- cp -a prefix/bin -t ${FLATPAK_DEST}/
- cp -a prefix/lib -t ${FLATPAK_DEST}/
- cp -a prefix/lib64/* -t ${FLATPAK_DEST}/lib/ # Merge with lib
- ln -rs ${FLATPAK_DEST}/lib ${FLATPAK_DEST}/lib64 # Add a symlink so plugins get found
- cp -a prefix/share -t ${FLATPAK_DEST}/

0 comments on commit db86caf

Please sign in to comment.