diff options
| author | Ken VanDine <ken.vandine@canonical.com> | 2025-01-21 08:48:48 +0200 |
|---|---|---|
| committer | Mitchell Hashimoto <m@mitchellh.com> | 2025-02-15 07:06:40 -0800 |
| commit | 0acf82bb9c07a0289d164df872a3b9c3498d2e45 (patch) | |
| tree | 82cd4c0e8fef79ba7d47c7d381c011fc6b900819 /snap | |
| parent | 9944fd5958b23c19b1aeed09c39f948ffe773ce2 (diff) | |
Use patch-rpath which improves our cross distro support
Diffstat (limited to 'snap')
| -rw-r--r-- | snap/snapcraft.yaml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 33d1f7864..c616e67c5 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -67,14 +67,15 @@ parts: source: . after: [zig] plugin: nil - build-attributes: [ enable-patchelf ] + build-attributes: [enable-patchelf] build-packages: - libgtk-4-dev - libadwaita-1-dev - git + - patchelf override-build: | craftctl set version=$(grep version build.zig.zon |awk -F '"' '{print $2}')-$(git describe --abbrev=8) - $CRAFT_PART_SRC/../../zig/src/zig build -Doptimize=ReleaseFast + $CRAFT_PART_SRC/../../zig/src/zig build -Dpatch-rpath=/snap/ghostty/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR -Doptimize=ReleaseFast cp -rp zig-out/* $CRAFT_PART_INSTALL/ sed -i 's|Icon=com.mitchellh.ghostty|Icon=/snap/ghostty/current/share/icons/hicolor/512x512/apps/com.mitchellh.ghostty.png|g' $CRAFT_PART_INSTALL/share/applications/com.mitchellh.ghostty.desktop |
