From 90ce5b75f1a7145bd4715a629b6fed6575cc7f06 Mon Sep 17 00:00:00 2001 From: Ken VanDine Date: Thu, 13 Feb 2025 21:42:49 -0500 Subject: [PATCH] Simplified setting snap version --- snap/snapcraft.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 732700272..37020a2d6 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -74,7 +74,7 @@ parts: - git - patchelf override-build: | - craftctl set version=$(grep version build.zig.zon |awk -F '"' '{print $2}')-$(git describe --abbrev=8) + craftctl set version=$(git describe --abbrev=8) $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