From 64ef2dc05116b72096ec27dc65a58c1ee2d0d45f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 25 Feb 2023 21:20:28 -0800 Subject: [PATCH] add flatpak builder yml --- com.mitchellh.ghostty.yml | 54 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 com.mitchellh.ghostty.yml diff --git a/com.mitchellh.ghostty.yml b/com.mitchellh.ghostty.yml new file mode 100644 index 000000000..fc43cbf61 --- /dev/null +++ b/com.mitchellh.ghostty.yml @@ -0,0 +1,54 @@ +app-id: com.mitchellh.ghostty +runtime: org.freedesktop.Platform +runtime-version: '22.08' +sdk: org.freedesktop.Sdk +platform-extensions: + - org.freedesktop.Platform.GL.default +default-branch: tip +command: ghostty +build-options: + append-path: /app/tmp/zig +cleanup: + - /app/tmp/zig +finish-args: + # 3D rendering + - --device=dri + # Windowing + - --share=ipc + - --socket=x11 + - --socket=wayland + # Files (we are a terminal so we need all of them) + - --filesystem=host + # So we can escape the sandbox + - --talk-name=org.freedesktop.Flatpak +modules: + # Note: this should be kept in sync with our flake.nix. Over time this + # should stabilize to being a release version and not a nightly. + - name: zig + buildsystem: simple + build-commands: + - mkdir -p /app/tmp/zig + - cp -r ./* /app/tmp/zig + sources: + - type: archive + url: https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.1650+5e7b09ce9.tar.xz + sha256: 8b77a475d3d124f0d4a4c4d4e2756f4a5317838272c08341325f196e8d539747 + only-arches: + - x86_64 + - type: archive + url: https://ziglang.org/builds/zig-linux-aarch64-0.11.0-dev.1650+5e7b09ce9.tar.xz + sha256: 104c2370c6eba25164ede3fefaf133ed650cca951f2e473bd533cfb0660c4e23 + only-arches: + - aarch64 + + - name: ghostty + buildsystem: simple + build-commands: + - MACH_SDK_PATH="$(pwd)/vendor/mach-sdk" zig build -Dcpu=baseline --prefix /app + sources: + - type: dir + path: . + skip: + - .flatpak-builder + - zig-cache + - zig-out