From fc35a0642be9fbe60ff8ce71fb5793e40f086ed3 Mon Sep 17 00:00:00 2001 From: Il Harper Date: Sun, 12 May 2024 20:52:52 +0800 Subject: [PATCH] fix(shellwin): fix rc --- .../build/templates/shell/koishell.rc.hbs | 53 +++++++++++++------ 1 file changed, 38 insertions(+), 15 deletions(-) diff --git a/packages/build/templates/shell/koishell.rc.hbs b/packages/build/templates/shell/koishell.rc.hbs index 366e092..cbd3e65 100644 --- a/packages/build/templates/shell/koishell.rc.hbs +++ b/packages/build/templates/shell/koishell.rc.hbs @@ -1,16 +1,39 @@ -1 VERSIONINFO FILEVERSION -{{koiSemver.major}},{{koiSemver.minor}},{{koiSemver.patch}},{{koiSemver.build}} -PRODUCTVERSION -{{koiSemver.major}},{{koiSemver.minor}},{{koiSemver.patch}},{{koiSemver.build}} -FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif -FILEOS 0x4L FILETYPE 0x1L FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN -BLOCK "040904b0" BEGIN VALUE "Comments", "Cordis Desktop Shell" VALUE -"CompanyName", "Cordis" VALUE "FileDescription", "Cordis Desktop Shell" VALUE -"FileVersion", "{{koiVersion}}" VALUE "InternalName", "Cordis Desktop Shell" -VALUE "LegalCopyright", "{{date.year}} -Cordis Team" VALUE "LegalTrademarks", "{{date.year}} -Cordis Team" VALUE "OriginalFilename", "koishell" VALUE "PrivateBuild", "{{koiVersion}}" -VALUE "ProductName", "Cordis Desktop Shell" VALUE "ProductVersion", "{{koiVersion}}" -VALUE "SpecialBuild", "{{koiVersion}}" END END BLOCK "VarFileInfo" BEGIN VALUE -"Translation", 0x0409, 1200 END END 101 ICON "../../../build/assets/koishi.ico" +1 VERSIONINFO + FILEVERSION {{koiSemver.major}},{{koiSemver.minor}},{{koiSemver.patch}},{{koiSemver.build}} + PRODUCTVERSION {{koiSemver.major}},{{koiSemver.minor}},{{koiSemver.patch}},{{koiSemver.build}} + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x1L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "Comments", "Cordis Desktop Shell" + VALUE "CompanyName", "Cordis" + VALUE "FileDescription", "Cordis Desktop Shell" + VALUE "FileVersion", "{{koiVersion}}" + VALUE "InternalName", "Cordis Desktop Shell" + VALUE "LegalCopyright", "{{date.year}} Cordis Team" + VALUE "LegalTrademarks", "{{date.year}} Cordis Team" + VALUE "OriginalFilename", "koishell" + VALUE "PrivateBuild", "{{koiVersion}}" + VALUE "ProductName", "Cordis Desktop Shell" + VALUE "ProductVersion", "{{koiVersion}}" + VALUE "SpecialBuild", "{{koiVersion}}" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0409, 1200 + END +END + +101 ICON "../../../build/assets/koishi.ico" 102 256 "../../../build/resources/userscript.js"