mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Use patch-rpath which improves our cross distro support
This commit is contained in:

committed by
Mitchell Hashimoto

parent
55c5b8b72f
commit
1a5b69181f
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user