mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
ci: add flatpak builder
This commit is contained in:
8
.github/workflows/flatpak.yml
vendored
8
.github/workflows/flatpak.yml
vendored
@ -1,5 +1,4 @@
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
on: [push]
|
||||
|
||||
name: Flatpak
|
||||
|
||||
@ -11,7 +10,10 @@ jobs:
|
||||
image: bilelmoussaoui/flatpak-github-actions:gnome-43
|
||||
options: --privileged
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v4
|
||||
with:
|
||||
bundle: ghostty.flatpak
|
||||
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -40,3 +40,6 @@
|
||||
[submodule "vendor/libxev"]
|
||||
path = vendor/libxev
|
||||
url = https://github.com/mitchellh/libxev.git
|
||||
[submodule "vendor/mach-sdk/sdk-linux-x86_64"]
|
||||
path = vendor/mach-sdk/sdk-linux-x86_64
|
||||
url = https://github.com/hexops/sdk-linux-x86_64.git
|
||||
|
@ -590,7 +590,11 @@ fn addDeps(
|
||||
// get access to glib for dbus.
|
||||
if (flatpak) {
|
||||
step.linkSystemLibrary("gtk4");
|
||||
step.addLibraryPath("/usr/lib/aarch64-linux-gnu");
|
||||
switch (step.target.getCpuArch()) {
|
||||
.aarch64 => step.addLibraryPath("/usr/lib/aarch64-linux-gnu"),
|
||||
.x86_64 => step.addLibraryPath("/usr/lib/x86_64-linux-gnu"),
|
||||
else => @panic("unsupported flatpak target"),
|
||||
}
|
||||
}
|
||||
|
||||
switch (app_runtime) {
|
||||
|
@ -2,8 +2,6 @@ app-id: com.mitchellh.ghostty
|
||||
runtime: org.gnome.Platform
|
||||
runtime-version: '43'
|
||||
sdk: org.gnome.Sdk
|
||||
platform-extensions:
|
||||
- org.freedesktop.Platform.GL.default
|
||||
default-branch: tip
|
||||
command: ghostty
|
||||
build-options:
|
||||
|
1
vendor/mach-sdk/sdk-linux-x86_64
vendored
Submodule
1
vendor/mach-sdk/sdk-linux-x86_64
vendored
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit ebd1ce12e9abc152c7ed43afbcdb4b6e1c95be07
|
Reference in New Issue
Block a user