mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-12-30 18:22:12 +00:00
Reverts two commits:977cd530c7820b7e432bThese break build from source on Linux for two reasons: 1.) The systemd user service needs to be installed in the `share` prefix, not the `lib` prefix. This lets it get picked up in `~/.local` but is also correct for just standard FHS paths. 2.) The `ghostty` path in the systemd user service needs to be absolute. We should interpolate in the build install prefix to form an absolute path.
66 lines
1.5 KiB
YAML
66 lines
1.5 KiB
YAML
app-id: com.mitchellh.ghostty-debug
|
|
runtime: org.gnome.Platform
|
|
runtime-version: "48"
|
|
sdk: org.gnome.Sdk
|
|
sdk-extensions:
|
|
- org.freedesktop.Sdk.Extension.ziglang
|
|
default-branch: tip
|
|
command: ghostty
|
|
# Integrate the rename into zig build, maybe?
|
|
rename-desktop-file: com.mitchellh.ghostty.desktop
|
|
rename-appdata-file: com.mitchellh.ghostty.metainfo.xml
|
|
rename-icon: com.mitchellh.ghostty
|
|
desktop-file-name-suffix: " (Debug)"
|
|
finish-args:
|
|
# 3D rendering
|
|
- --device=dri
|
|
# use host PTS namespace
|
|
- --device=all
|
|
# Windowing
|
|
- --share=ipc
|
|
- --socket=fallback-x11
|
|
- --socket=wayland
|
|
# Allow user to specify additional config files in home by default
|
|
- --filesystem=home:ro
|
|
# So we can escape the sandbox
|
|
- --talk-name=org.freedesktop.Flatpak
|
|
cleanup:
|
|
- /include
|
|
- /lib/girepository-1.0
|
|
- /lib/pkgconfig
|
|
- /share/gir-1.0
|
|
- /share/pkgconfig
|
|
- /share/vala
|
|
- "*.la"
|
|
- "*.a"
|
|
- "*.so"
|
|
|
|
modules:
|
|
- dependencies.yml
|
|
|
|
- name: ghostty
|
|
buildsystem: simple
|
|
build-options:
|
|
append-path: /usr/lib/sdk/ziglang
|
|
build-commands:
|
|
- zig build
|
|
-Doptimize=Debug
|
|
-Dcpu=baseline
|
|
-Dflatpak=true
|
|
-Dstrip=false
|
|
-fno-sys=oniguruma
|
|
--prefix /app
|
|
--search-prefix /app
|
|
--system $PWD/vendor/p
|
|
sources:
|
|
- type: dir
|
|
path: ..
|
|
skip:
|
|
- flatpak/.flatpak-builder
|
|
- flatpak/builddir
|
|
- flatpak/repo
|
|
- zig-cache
|
|
- zig-out
|
|
|
|
- zig-packages.json
|