Automated generation of flathub needed files and manifest

This commit is contained in:
XargonWan 2023-08-30 15:09:11 +02:00
parent 74de88d16a
commit 570e282526
3 changed files with 23 additions and 48 deletions

View file

@ -9,6 +9,7 @@ jobs:
Pushing_main_into_flathub: Pushing_main_into_flathub:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Pushing - name: Pushing
shell: bash shell: bash
run: | run: |
@ -47,17 +48,35 @@ jobs:
# Copying only a few files as the others are cloned by git in retrodeck.sh # Copying only a few files as the others are cloned by git in retrodeck.sh
cd $gits_folder/RetroDECK cd $gits_folder/RetroDECK
cp -rf \ cp -rf \
'flathub.json' \
'LICENSE' \ 'LICENSE' \
'flathub.yml' \
'README.md' \ 'README.md' \
$gits_folder/flathub/ $gits_folder/flathub/
cd $gits_folder/flathub cd $gits_folder/flathub
ls -lah ls -lah
# manipulating manifest # Creating the manifest for flathub
mv flathub.yml net.retrodeck.retrodeck.yml manifest='net.retrodeck.retrodeck.yml'
sed -n '/cleanup/q;p' $gits_folder/RetroDECK/net.retrodeck.retrodeck.yml > $manifest
sed -i '/^[[:space:]]*#/d' $manifest
sed -i 's/[[:space:]]*#.*$//' $manifest
cat << EOF >> $manifest
modules:
- name: retrodeck
buildsystem: simple
build-commands:
- cp -rn files/* /app
sources:
- type: archive
url: https://artifacts.retrodeck.net/artifacts/RetroDECK-Artifact.tar.gz
sha256: __SHA__
EOF
cat << EOF >> flathub.json
{
"only-arches": ["x86_64"]
}
EOF
# Getting latest release name # Getting latest release name
# version=$(\ # version=$(\

View file

@ -1,3 +0,0 @@
{
"only-arches": ["x86_64"]
}

View file

@ -1,41 +0,0 @@
app-id: net.retrodeck.retrodeck
runtime: org.kde.Platform
runtime-version: 5.15-22.08
sdk: org.kde.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm14 # Needed for rpcs3
base: io.qt.qtwebengine.BaseApp # Needed for Yuzu
base-version: 5.15-22.08 # Needed for Yuzu
command: retrodeck.sh
finish-args:
- --socket=fallback-x11
- --socket=wayland
- --socket=pulseaudio
- --share=ipc
- --share=network
- --device=all
- --filesystem=home # Needed to be able to relocate / remove / create symlink at ~/retrodeck
- --filesystem=/run/media
- --filesystem=/media
- --allow=multiarch
- --talk-name=org.freedesktop.ScreenSaver
- --talk-name=org.freedesktop.PowerManagement.Inhibit
- --talk-name=org.freedesktop.login1.Manager
- --filesystem=xdg-run/app/com.discordapp.Discord:create
# Dolphin
- --allow=bluetooth
# PPSSPP
# It allows an SDL application to specify its window class, which can be useful for window managers and desktop environments to identify and group similar windows
- --env=SDL_VIDEO_X11_WMCLASS=net.retrodeck.retrodeck
- --env=SDL_VIDEO_WAYLAND_WMCLASS=net.retrodeck.retrodeck
modules:
- name: retrodeck
buildsystem: simple
build-commands:
- cp -rn files/* /app
sources:
- type: archive
url: https://artifacts.retrodeck.net/artifacts/RetroDECK-Artifact.tar.gz
sha256: __SHA__