mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-20 10:46:07 +03:00
Merge pull request #1503 from marler8997/windowsRcFile
windows: add rc file
This commit is contained in:
10
build.zig
10
build.zig
@ -261,9 +261,17 @@ pub fn build(b: *std.Build) !void {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (target.result.os.tag == .windows) {
|
||||||
|
exe.subsystem = .Windows;
|
||||||
|
exe.addWin32ResourceFile(.{
|
||||||
|
.file = .{ .path = "dist/windows/ghostty.rc" },
|
||||||
|
});
|
||||||
|
|
||||||
// Building with LTO on Windows is broken.
|
// Building with LTO on Windows is broken.
|
||||||
// https://github.com/ziglang/zig/issues/15958
|
// https://github.com/ziglang/zig/issues/15958
|
||||||
if (target.result.os.tag == .windows) exe.want_lto = false;
|
exe.want_lto = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// If we're installing, we get the install step so we can add
|
// If we're installing, we get the install step so we can add
|
||||||
// additional dependencies to it.
|
// additional dependencies to it.
|
||||||
|
BIN
dist/windows/ghostty.ico
vendored
Normal file
BIN
dist/windows/ghostty.ico
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 71 KiB |
14
dist/windows/ghostty.manifest
vendored
Normal file
14
dist/windows/ghostty.manifest
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
|
||||||
|
<asmv3:application>
|
||||||
|
<asmv3:windowsSettings>
|
||||||
|
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
|
||||||
|
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
|
||||||
|
</asmv3:windowsSettings>
|
||||||
|
</asmv3:application>
|
||||||
|
<dependency>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" />
|
||||||
|
</dependentAssembly>
|
||||||
|
</dependency>
|
||||||
|
</assembly>
|
36
dist/windows/ghostty.rc
vendored
Normal file
36
dist/windows/ghostty.rc
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
// LANG_NEUTRAL(0), SUBLANG_NEUTRAL(0)
|
||||||
|
LANGUAGE 0, 0
|
||||||
|
|
||||||
|
#define RT_MANIFEST 1
|
||||||
|
RT_MANIFEST 24 "ghostty.manifest"
|
||||||
|
|
||||||
|
#define ID_ICON_GHOSTTY 1
|
||||||
|
ID_ICON_GHOSTTY ICON "ghostty.ico"
|
||||||
|
|
||||||
|
VS_VERSION_INFO VERSIONINFO
|
||||||
|
//FILEVERSION VERSION_MAJOR,VERSION_MINOR,VERSION_PATCH,VERSION_COMMIT_HEIGHT
|
||||||
|
//PRODUCTVERSION VERSION_MAJOR,VERSION_MINOR,VERSION_PATCH,VERSION_COMMIT_HEIGHT
|
||||||
|
//FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
|
||||||
|
//FILEFLAGS VER_DBG
|
||||||
|
//FILEOS VOS_NT
|
||||||
|
//FILETYPE VFT_APP
|
||||||
|
//FILESUBTYPE VFT2_UNKNOWN
|
||||||
|
BEGIN
|
||||||
|
BLOCK "StringFileInfo"
|
||||||
|
BEGIN
|
||||||
|
BLOCK "040904b0"
|
||||||
|
BEGIN
|
||||||
|
//VALUE "CompanyName", "???"
|
||||||
|
//VALUE "FileDescription", "???"
|
||||||
|
//VALUE "FileVersion", VERSION
|
||||||
|
//VALUE "LegalCopyright", "(C) 2024 ???"
|
||||||
|
VALUE "OriginalFilename", "ghostty.exe"
|
||||||
|
VALUE "ProductName", "Ghostty"
|
||||||
|
//VALUE "ProductVersion", VERSION
|
||||||
|
END
|
||||||
|
END
|
||||||
|
BLOCK "VarFileInfo"
|
||||||
|
BEGIN
|
||||||
|
VALUE "Translation", 0x0409,1200
|
||||||
|
END
|
||||||
|
END
|
Reference in New Issue
Block a user