custom flatpak extension

(many squashed commits)

---------

Co-authored-by: PancakeTAS <pancake@mgnet.work>
This commit is contained in:
Twig6943 2025-07-20 23:24:39 +03:00 committed by GitHub
parent 60e2335f86
commit e67fcd3dd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 107 additions and 0 deletions

View file

@ -0,0 +1,20 @@
name: Update lsfg-vk Flatpak (23.08)
on:
push:
branches: ["develop", "flatpak"]
jobs:
update-flatpak:
runs-on: ubuntu-latest
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-23.08
options: --privileged
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Flatpak extension
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: "org.freedesktop.Platform.VulkanLayer.lsfg_vk"
manifest-path: "flatpak/org.freedesktop.Platform.VulkanLayer.lsfgvk_23.08.yml"
verbose: true

View file

@ -0,0 +1,20 @@
name: Update lsfg-vk Flatpak (24.08)
on:
push:
branches: ["develop", "flatpak"]
jobs:
update-flatpak:
runs-on: ubuntu-latest
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-24.08
options: --privileged
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Flatpak extension
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: "org.freedesktop.Platform.VulkanLayer.lsfg_vk"
manifest-path: "flatpak/org.freedesktop.Platform.VulkanLayer.lsfgvk_24.08.yml"
verbose: true

View file

@ -0,0 +1,13 @@
diff --git a/VkLayer_LS_frame_generation.json b/VkLayer_LS_frame_generation.json
index ece2a5f..774a027 100644
--- a/VkLayer_LS_frame_generation.json
+++ b/VkLayer_LS_frame_generation.json
@@ -4,7 +4,7 @@
"name": "VK_LAYER_LS_frame_generation",
"type": "GLOBAL",
"api_version": "1.4.313",
- "library_path": "../../../lib/liblsfg-vk.so",
+ "library_path": "/usr/lib/extensions/vulkan/lsfgvk/lib/liblsfg-vk.so",
"implementation_version": "1",
"description": "Lossless Scaling frame generation layer",
"functions": {

View file

@ -0,0 +1,27 @@
id: org.freedesktop.Platform.VulkanLayer.lsfgvk
branch: '23.08'
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
build-extension: true
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm18
build-options:
prefix: /usr/lib/extensions/vulkan/lsfgvk
modules:
- name: lsfg-vk
buildsystem: cmake-ninja
build-options:
append-path: /usr/lib/sdk/llvm18/bin
prepend-ld-library-path: /usr/lib/sdk/llvm18/lib
config-opts:
- -DCMAKE_BUILD_TYPE=Release
sources:
- type: git
url: https://github.com/PancakeTAS/lsfg-vk.git
branch: develop
- type: patch
path: VkLayer_LS_frame_generation.patch

View file

@ -0,0 +1,27 @@
id: org.freedesktop.Platform.VulkanLayer.lsfgvk
branch: '24.08'
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
build-extension: true
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm20
build-options:
prefix: /usr/lib/extensions/vulkan/lsfgvk
modules:
- name: lsfg-vk
buildsystem: cmake-ninja
build-options:
append-path: /usr/lib/sdk/llvm20/bin
prepend-ld-library-path: /usr/lib/sdk/llvm20/lib
config-opts:
- -DCMAKE_BUILD_TYPE=Release
sources:
- type: git
url: https://github.com/PancakeTAS/lsfg-vk.git
branch: develop
- type: patch
path: VkLayer_LS_frame_generation.patch