Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
name: Flatpak

on:
workflow_dispatch:
inputs:
build_version:
description: 'Version tag for the build (e.g. v0.1.0). Defaults to the commit SHA.'
required: false
default: ''

jobs:
flatpak:
name: Build Flatpak
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: false
fetch-depth: 0

- name: Initialize Flatpak submodules
run: |
git submodule update --init packaging/linux/flatpak/deps/flatpak-builder-tools
git submodule update --init packaging/linux/flatpak/deps/shared-modules

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install flatpak-node-generator dependencies
run: pip install aiohttp toml

- name: Generate npm sources for Flatpak
run: |
python3 packaging/linux/flatpak/deps/flatpak-builder-tools/node/flatpak-node-generator.py \
npm package-lock.json \
--output generated-sources.json

- name: Configure Flatpak manifest
env:
BRANCH: ${{ github.ref_name }}
BUILD_VERSION: ${{ inputs.build_version || github.sha }}
CLONE_URL: ${{ github.server_url }}/${{ github.repository }}
COMMIT: ${{ github.sha }}
run: |
cmake -B cmake-build \
-DSUNSHINE_CONFIGURE_FLATPAK_MAN=ON \
-DSUNSHINE_CONFIGURE_ONLY=ON

- name: Build Flatpak
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: Apollo.flatpak
manifest-path: cmake-build/io.github.filobus97.Apollo.yml
cache-key: flatpak-builder-${{ hashFiles('cmake-build/io.github.filobus97.Apollo.yml') }}

- name: Upload Flatpak bundle
uses: actions/upload-artifact@v4
with:
name: Apollo-flatpak
path: Apollo.flatpak
retention-days: 30
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ project(Apollo VERSION 0.0.0

set(PROJECT_LICENSE "GPL-3.0-only")

set(PROJECT_FQDN "dev.lizardbyte.app.Sunshine")
set(PROJECT_FQDN "io.github.filobus97.Apollo")

set(PROJECT_BRIEF_DESCRIPTION "GameStream host for Artemis") # must be <= 35 characters

Expand Down
2 changes: 1 addition & 1 deletion packaging/linux/flatpak/exceptions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dev.lizardbyte.app.Sunshine": [
"io.github.filobus97.Apollo": [
"appstream-external-screenshot-url",
"appstream-screenshots-not-mirrored-in-ostree",
"external-gitmodule-url-found",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ modules:
- -DSUNSHINE_ENABLE_X11=ON
- -DSUNSHINE_ENABLE_DRM=ON
- -DSUNSHINE_ENABLE_CUDA=ON
- -DSUNSHINE_PUBLISHER_NAME='LizardByte'
- -DSUNSHINE_PUBLISHER_WEBSITE='https://app.lizardbyte.dev'
- -DSUNSHINE_PUBLISHER_ISSUE_URL='https://app.lizardbyte.dev/support'
- -DSUNSHINE_PUBLISHER_NAME='filobus97'
- -DSUNSHINE_PUBLISHER_WEBSITE='https://github.com/filobus97/Apollo'
- -DSUNSHINE_PUBLISHER_ISSUE_URL='https://github.com/filobus97/Apollo/issues'
no-make-install: false
post-install:
- install -D $FLATPAK_BUILDER_BUILDDIR/packaging/linux/flatpak/scripts/* /app/bin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,20 @@
</supports>

<url type="homepage">@PROJECT_HOMEPAGE_URL@</url>
<url type="bugtracker">https://github.com/LizardByte/Sunshine/issues</url>
<url type="faq">https://docs.lizardbyte.dev/projects/sunshine/latest/md_docs_2troubleshooting.html</url>
<url type="help">https://docs.lizardbyte.dev/projects/sunshine</url>
<url type="donation">https://app.lizardbyte.dev/#Donate</url>
<url type="translate">https://translate.lizardbyte.dev</url>
<url type="contact">https://app.lizardbyte.dev/support</url>
<url type="bugtracker">https://github.com/filobus97/Apollo/issues</url>
<url type="help">https://github.com/filobus97/Apollo/wiki</url>
<url type="contact">https://github.com/filobus97/Apollo/issues</url>

<description>
<p>
@PROJECT_LONG_DESCRIPTION@
</p>

<p>NOTE: Sunshine requires additional installation steps (Flatpak).</p>
<p>NOTE: Apollo requires additional installation steps (Flatpak).</p>
<p>
<code>flatpak run --command=additional-install.sh @PROJECT_FQDN@</code>
</p>
<p>NOTE: Sunshine uses a self-signed certificate. The web browser will report it as not secure, but it is safe.</p>
<p>NOTE: Apollo uses a self-signed certificate. The web browser will report it as not secure, but it is safe.</p>
<p>NOTE: KMS Grab (Flatpak)</p>
<p>
<code>sudo -i PULSE_SERVER=unix:/run/user/$(id -u $whoami)/pulse/native flatpak run @PROJECT_FQDN@</code>
Expand All @@ -51,13 +48,13 @@
</release>
</releases>

<developer id="dev.lizardbyte">
<name>LizardByte</name>
<developer id="io.github.filobus97">
<name>filobus97</name>
</developer>
<screenshots>
<screenshot type="default">
<image>https://app.lizardbyte.dev/Sunshine/assets/img/screenshots/01-sunshine-welcome-page.png</image>
<caption>Sunshine welcome page</caption>
<image>https://raw.githubusercontent.com/filobus97/Apollo/refs/heads/master/apollo.png</image>
<caption>Apollo game streaming host</caption>
</screenshot>
</screenshots>
<content_rating type="oars-1.0">
Expand Down