Skip to content

Commit

Permalink
gtk: Install 1024x1024 icon (#4003)
Browse files Browse the repository at this point in the history
Fixes #3967

Include the 1024x1024 icon in the files installed by `build.zig` when
building the package for Linux with the GTK app runtime.
  • Loading branch information
mitchellh authored Dec 30, 2024
2 parents d2d6f8b + cfeed2b commit 87bd0bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ pub fn build(b: *std.Build) !void {
b.installFile("images/icons/icon_128.png", "share/icons/hicolor/128x128/apps/com.mitchellh.ghostty.png");
b.installFile("images/icons/icon_256.png", "share/icons/hicolor/256x256/apps/com.mitchellh.ghostty.png");
b.installFile("images/icons/icon_512.png", "share/icons/hicolor/512x512/apps/com.mitchellh.ghostty.png");
b.installFile("images/icons/icon_1024.png", "share/icons/hicolor/1024x1024/apps/com.mitchellh.ghostty.png");
b.installFile("images/icons/[email protected]", "share/icons/hicolor/16x16@2/apps/com.mitchellh.ghostty.png");
b.installFile("images/icons/[email protected]", "share/icons/hicolor/32x32@2/apps/com.mitchellh.ghostty.png");
b.installFile("images/icons/[email protected]", "share/icons/hicolor/128x128@2/apps/com.mitchellh.ghostty.png");
Expand Down
4 changes: 4 additions & 0 deletions src/apprt/gtk/gresource.zig
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ const icons = [_]struct {
.alias = "512x512",
.source = "512",
},
.{
.alias = "1024x1024",
.source = "1024",
},
};

pub const gresource_xml = comptimeGenerateGResourceXML();
Expand Down

0 comments on commit 87bd0bb

Please sign in to comment.