Skip to content

Commit

Permalink
Refactoring flatpak to simplify its usage and folder locality
Browse files Browse the repository at this point in the history
  • Loading branch information
checkroom committed Dec 16, 2024
1 parent 4a583ad commit 1247055
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flatpak/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/repo/
/dist/
/.flatpak-builder/
/vs.flatpak
2 changes: 2 additions & 0 deletions flatpak/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Flatpak building from this repo is deprecated, and has been moved to a specific one for distribution.
It is preserved for now as it is easier to work from here fixing bugs in flatpak generation & nighlty builds, but it will soon be removed.
41 changes: 41 additions & 0 deletions flatpak/com.karurochari.vs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
id: com.karurochari.vs
runtime: org.freedesktop.Platform
runtime-version: "24.08"
sdk: org.freedesktop.Sdk
sdk-extensions:
- "org.freedesktop.Sdk.Extension.llvm19"
- "org.freedesktop.Sdk.Extension.swift6"
build-options:
append-path: "/usr/lib/sdk/llvm19/bin:/usr/lib/sdk/swift6/bin"
prepend-ld-library-path: "/usr/lib/sdk/llvm19/lib:/usr/lib/sdk/swift6/lib"
command: vs
modules:
- shared-modules/glu/glu-9.json
- name: vs-fltk
buildsystem: meson
config-opts:
#- --prefix=/usr
- --native-file=/run/build/vs-fltk/toolchains/flatpak.ini
- --buildtype=release
- -Dtests=false
sources:
- type: dir
path: ..
finish-args:
# X11 + XShm access
- --share=ipc
- --socket=fallback-x11
# Wayland access
- --socket=wayland
# GPU acceleration if needed
- --device=dri
# Needs to talk to the network:
- --share=network
# Add support for shared memory
- --device=shm
# Audio
- --socket=pulseaudio
# Home folder
- --filesystem=home/.vs-fltk
#cleanup:
# - '*'
3 changes: 3 additions & 0 deletions flatpak/make.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
flatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo dist com.karurochari.vs.yml
flatpak build-bundle repo vs.flatpak org.karurochari.vs

0 comments on commit 1247055

Please sign in to comment.