mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Set a more meaningful version for the snap
This commit is contained in:

committed by
Mitchell Hashimoto

parent
53f1b4bc15
commit
2e0e8af1ad
@ -1,6 +1,5 @@
|
|||||||
name: ghostty
|
name: ghostty
|
||||||
base: core24
|
base: core24
|
||||||
version: git
|
|
||||||
summary: A terminal emulator
|
summary: A terminal emulator
|
||||||
description: |
|
description: |
|
||||||
Ghostty is a fast, feature-rich, and cross-platform terminal emulator that
|
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
|
website: https://ghostty.org
|
||||||
license: MIT
|
license: MIT
|
||||||
icon: images/icons/icon_512.png
|
icon: images/icons/icon_512.png
|
||||||
|
adopt-info: ghostty
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
amd64:
|
amd64:
|
||||||
@ -76,6 +76,7 @@ parts:
|
|||||||
- libadwaita-1-0
|
- libadwaita-1-0
|
||||||
- libgtk-4-1
|
- libgtk-4-1
|
||||||
override-build: |
|
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 -Doptimize=ReleaseFast
|
||||||
cp -rp zig-out/* $CRAFT_PART_INSTALL/
|
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
|
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