From 2e0e8af1ada3300d7fdb298775f139e9b23d12a0 Mon Sep 17 00:00:00 2001 From: Ken VanDine Date: Mon, 30 Dec 2024 15:28:25 -0500 Subject: [PATCH] Set a more meaningful version for the snap --- snap/snapcraft.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index a3edeb327..e3b61537a 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,6 +1,5 @@ name: ghostty base: core24 -version: git summary: A terminal emulator description: | Ghostty is a fast, feature-rich, and cross-platform terminal emulator that @@ -12,6 +11,7 @@ issues: https://github.com/ghostty-org/ghostty/issues website: https://ghostty.org license: MIT icon: images/icons/icon_512.png +adopt-info: ghostty platforms: amd64: @@ -76,6 +76,7 @@ parts: - libadwaita-1-0 - libgtk-4-1 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 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