1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-05-01 08:27:45 +00:00

Build Flatpak on the CI (#31)

This provides a downloadable development Flatpak version, which is more portable than the Linux artifact.
This commit is contained in:
Joshua Goins 2025-04-29 15:41:27 -04:00 committed by GitHub
parent d69ebf91c7
commit a008b32a47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 31 deletions

View file

@ -7,14 +7,13 @@ on:
branches: [ "main" ]
env:
CMAKE_BUILD_PARALLEL_LEVEL: 2
MAKEFLAGS: '-j 2'
QT_VERSION: 6.8.1 # Keep in sync with CMakeLists.txt
KF_VERSION: v6.10.0 # Ditto
QT_VERSION: 6.8.2 # Keep in sync with CMakeLists.txt
KF_VERSION: v6.13.0 # Ditto
KIRIGAMI_ADDONS_VERSION: v1.7.0 # Ditto x2
jobs:
reuse:
name: "REUSE"
runs-on: ubuntu-latest
steps:
@ -23,6 +22,7 @@ jobs:
uses: fsfe/reuse-action@v5
build:
name: "Build"
runs-on: ${{ matrix.os }}
strategy:
@ -312,30 +312,23 @@ jobs:
- name: Archive artifacts
uses: actions/upload-artifact@v4
if: runner.os == 'Windows'
with:
name: ${{ runner.os }}-package
path: ${{ steps.strings.outputs.build-output-dir }}/bin
#build-flatpak:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
# - name: Setup Linux dependencies
# run: |
# sudo apt-get update
# sudo apt-get install \
# flatpak-builder \
# - name: Build Flatpak
# run: |
# ./scripts/build-flatpak.sh
# - name: Archive artifacts
# uses: actions/upload-artifact@v4
# with:
# name: flatpak
# path: astra.flatpak
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-48
options: --privileged
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: astra.flatpak
manifest-path: zone.xiv.astra.yml
cache-key: flatpak-builder-${{ github.sha }}

View file

@ -61,22 +61,22 @@ int main(int argc, char *argv[])
QUrl(QStringLiteral("https://redstrate.com/rss-image.png")));
about.setHomepage(QStringLiteral("https://xiv.zone/astra"));
about.addComponent(QStringLiteral("physis"),
i18n("Library to access FFXIV data"),
i18n("Library for reading and writing FFXIV data."),
QString::fromLatin1(physis_get_physis_version()),
QStringLiteral("https://xiv.zone/physis"),
KAboutLicense::GPL_V3);
about.addComponent(QStringLiteral("libphysis"),
i18n("C bindings for physis"),
i18n("C/C++ bindings for Physis."),
QString::fromLatin1(physis_get_libphysis_version()),
QStringLiteral("https://github.com/redstrate/libphysis"),
KAboutLicense::GPL_V3);
about.addComponent(QStringLiteral("KDSingleApplication"),
i18n("Helper class for single-instance policy applications "),
i18n("Helper class for single-instance policy applications."),
QStringLiteral("1.1.1"),
QStringLiteral("https://github.com/KDAB/KDSingleApplication"),
KAboutLicense::MIT);
about.addComponent(QStringLiteral("libcotp"),
i18n(" C library that generates TOTP and HOTP "),
i18n(" C library that generates TOTP and HOTP."),
QStringLiteral("3.0.0"),
QStringLiteral("https://github.com/paolostivanin/libcotp"),
KAboutLicense::Unknown);