flatpak: build GTK version

This commit is contained in:
Mitchell Hashimoto
2023-02-25 23:08:04 -08:00
parent fc3802e632
commit 5b9bc9abdb
2 changed files with 7 additions and 4 deletions

View File

@ -604,6 +604,9 @@ fn addDeps(
try glfw.link(b, step, glfw_opts);
step.linkSystemLibrary("gtk4");
// This is for Flatpak
step.addLibraryPath("/usr/lib/aarch64-linux-gnu");
},
}
}

View File

@ -1,7 +1,7 @@
app-id: com.mitchellh.ghostty
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
runtime: org.gnome.Platform
runtime-version: '43'
sdk: org.gnome.Sdk
platform-extensions:
- org.freedesktop.Platform.GL.default
default-branch: tip
@ -64,7 +64,7 @@ modules:
- name: ghostty
buildsystem: simple
build-commands:
- MACH_SDK_PATH="$(pwd)/vendor/mach-sdk" zig build -Dcpu=baseline --prefix /app
- MACH_SDK_PATH="$(pwd)/vendor/mach-sdk" zig build -Doptimize=ReleaseFast -Dcpu=baseline -Dapp-runtime=gtk --prefix /app
sources:
- type: dir
path: .