Attempt to get flatpak builds working
This commit is contained in:
parent
392822ec7a
commit
a13d3f4a38
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@ -564,3 +564,28 @@ jobs:
|
|||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: |
|
run: |
|
||||||
ccache -s
|
ccache -s
|
||||||
|
|
||||||
|
flatpak:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: bilelmoussaoui/flatpak-github-actions:kde-5.15-22.08
|
||||||
|
options: --privileged
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
if: inputs.build_type == 'Release'
|
||||||
|
with:
|
||||||
|
submodules: 'true'
|
||||||
|
- name: Build Flatpak (Linux)
|
||||||
|
if: inputs.build_type == 'Release'
|
||||||
|
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||||
|
with:
|
||||||
|
bundle: "PollyMC.flatpak"
|
||||||
|
manifest-path: flatpak/org.fn2006.PollyMC.yml
|
||||||
|
|
||||||
|
- name: Upload AppImage (Linux)
|
||||||
|
if: runner.os == 'Linux' && matrix.qt_ver != 5
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: PollyMC-${{ env.VERSION }}-x86_64.flatpak
|
||||||
|
path: PollyMC.flatpak
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
id: org.prismlauncher.PrismLauncher
|
id: org.fn2006.PollyMC
|
||||||
runtime: org.kde.Platform
|
runtime: org.kde.Platform
|
||||||
runtime-version: "5.15-22.08"
|
runtime-version: "5.15-22.08"
|
||||||
sdk: org.kde.Sdk
|
sdk: org.kde.Sdk
|
||||||
@ -13,7 +13,7 @@ add-extensions:
|
|||||||
autodelete: false
|
autodelete: false
|
||||||
directory: utils/gamescope
|
directory: utils/gamescope
|
||||||
|
|
||||||
command: prismlauncher
|
command: pollymc
|
||||||
finish-args:
|
finish-args:
|
||||||
- --share=ipc
|
- --share=ipc
|
||||||
- --socket=x11
|
- --socket=x11
|
||||||
@ -27,11 +27,11 @@ finish-args:
|
|||||||
- --filesystem=xdg-download:ro
|
- --filesystem=xdg-download:ro
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
- name: prismlauncher
|
- name: pollymc
|
||||||
buildsystem: cmake-ninja
|
buildsystem: cmake-ninja
|
||||||
config-opts:
|
config-opts:
|
||||||
- -DLauncher_BUILD_PLATFORM=flatpak
|
- -DLauncher_BUILD_PLATFORM=flatpak
|
||||||
- -DCMAKE_BUILD_TYPE=Debug
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
- -DLauncher_QT_VERSION_MAJOR=5
|
- -DLauncher_QT_VERSION_MAJOR=5
|
||||||
build-options:
|
build-options:
|
||||||
env:
|
env:
|
||||||
@ -76,10 +76,10 @@ modules:
|
|||||||
build-commands:
|
build-commands:
|
||||||
- mkdir -p /app/utils/gamescope
|
- mkdir -p /app/utils/gamescope
|
||||||
- install -Dm755 prime-run /app/bin/prime-run
|
- install -Dm755 prime-run /app/bin/prime-run
|
||||||
- mv /app/bin/prismlauncher /app/bin/prismrun
|
- mv /app/bin/pollymc /app/bin/pollyrun
|
||||||
- install -Dm755 prismlauncher /app/bin/prismlauncher
|
- install -Dm755 pollymc /app/bin/pollymc
|
||||||
sources:
|
sources:
|
||||||
- type: file
|
- type: file
|
||||||
path: ../flatpak/prime-run
|
path: ../flatpak/prime-run
|
||||||
- type: file
|
- type: file
|
||||||
path: ../flatpak/prismlauncher
|
path: ../flatpak/pollymc
|
@ -8,4 +8,4 @@ done
|
|||||||
export PATH="${PATH}${PATH:+:}/app/utils/gamescope/bin:/usr/lib/extensions/vulkan/MangoHud/bin"
|
export PATH="${PATH}${PATH:+:}/app/utils/gamescope/bin:/usr/lib/extensions/vulkan/MangoHud/bin"
|
||||||
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}/usr/lib/extensions/vulkan/MangoHud/\$LIB/"
|
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}/usr/lib/extensions/vulkan/MangoHud/\$LIB/"
|
||||||
|
|
||||||
exec /app/bin/prismrun "$@"
|
exec /app/bin/pollyrun "$@"
|
Loading…
Reference in New Issue
Block a user