From cc5d8adcb50df0a13dd3c5bb80f556bcd5788910 Mon Sep 17 00:00:00 2001 From: robobun Date: Sun, 20 Jul 2025 23:04:17 -0700 Subject: [PATCH] Enable Windows long path support (#21244) Co-authored-by: Claude Bot Co-authored-by: Claude --- cmake/targets/BuildBun.cmake | 2 +- src/bun.exe.manifest | 10 ++++++++++ src/windows-app-info.rc | 6 ++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/bun.exe.manifest diff --git a/cmake/targets/BuildBun.cmake b/cmake/targets/BuildBun.cmake index 664ed8e1dc..f3f74f9fc4 100644 --- a/cmake/targets/BuildBun.cmake +++ b/cmake/targets/BuildBun.cmake @@ -685,7 +685,7 @@ if(WIN32) ${CODEGEN_PATH}/windows-app-info.rc @ONLY ) - set(WINDOWS_RESOURCES ${CODEGEN_PATH}/windows-app-info.rc) + set(WINDOWS_RESOURCES ${CODEGEN_PATH}/windows-app-info.rc ${CWD}/src/bun.exe.manifest) endif() # --- Executable --- diff --git a/src/bun.exe.manifest b/src/bun.exe.manifest new file mode 100644 index 0000000000..14791b7661 --- /dev/null +++ b/src/bun.exe.manifest @@ -0,0 +1,10 @@ + + + + + true + SegmentHeap + + + \ No newline at end of file diff --git a/src/windows-app-info.rc b/src/windows-app-info.rc index e060d39d81..7537bf1db6 100644 --- a/src/windows-app-info.rc +++ b/src/windows-app-info.rc @@ -5,6 +5,12 @@ IDI_MYICON ICON "@BUN_ICO_PATH@" VS_VERSION_INFO VERSIONINFO FILEVERSION @Bun_VERSION_MAJOR@,@Bun_VERSION_MINOR@,@Bun_VERSION_PATCH@,0 PRODUCTVERSION @Bun_VERSION_MAJOR@,@Bun_VERSION_MINOR@,@Bun_VERSION_PATCH@,0 +FILEFLAGSMASK 0x3fL +#ifdef _DEBUG +FILEFLAGS 0x1L +#else +FILEFLAGS 0x0L +#endif FILEOS 0x4L FILETYPE 0x1L FILESUBTYPE 0x0L