-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring flatpak to simplify its usage and folder locality
- Loading branch information
checkroom
committed
Dec 16, 2024
1 parent
4a583ad
commit 31da545
Showing
4 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/repo/ | ||
/dist/ | ||
/.flatpak-builder/ | ||
/vs.flatpak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
# - '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |