From b4bf8640d7c6dd333c1d2ba608641ab2666de36b Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sat, 17 Feb 2024 08:35:23 +0800 Subject: [PATCH] Add Windows resources --- windows/resources/.gitattributes | 1 + windows/resources/.gitignore | 6 + windows/resources/resource.h | 20 +++ windows/resources/resources.rc | 175 ++++++++++++++++++++ windows/resources/resources.sln | 31 ++++ windows/resources/resources.vcxproj | 144 ++++++++++++++++ windows/resources/resources.vcxproj.filters | 27 +++ 7 files changed, 404 insertions(+) create mode 100644 windows/resources/.gitattributes create mode 100644 windows/resources/.gitignore create mode 100644 windows/resources/resource.h create mode 100644 windows/resources/resources.rc create mode 100644 windows/resources/resources.sln create mode 100644 windows/resources/resources.vcxproj create mode 100644 windows/resources/resources.vcxproj.filters diff --git a/windows/resources/.gitattributes b/windows/resources/.gitattributes new file mode 100644 index 0000000..6e391fa --- /dev/null +++ b/windows/resources/.gitattributes @@ -0,0 +1 @@ +resources.rc text working-tree-encoding=UTF-16LE-BOM eol=CRLF diff --git a/windows/resources/.gitignore b/windows/resources/.gitignore new file mode 100644 index 0000000..dae6487 --- /dev/null +++ b/windows/resources/.gitignore @@ -0,0 +1,6 @@ +resources/ +x64/ +x86/ +.vs/ +*.aps +*.vcxproj.user diff --git a/windows/resources/resource.h b/windows/resources/resource.h new file mode 100644 index 0000000..3a592c3 --- /dev/null +++ b/windows/resources/resource.h @@ -0,0 +1,20 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ 生成的包含文件。 +// 供 resources.rc 使用 +// +#define IDS_JPEG 101 +#define IDS_PNG 102 +#define IDS_GIF 103 +#define IDR_VERSION2 103 +#define IDS_ZIP 104 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 104 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/windows/resources/resources.rc b/windows/resources/resources.rc new file mode 100644 index 0000000..bd4a75d --- /dev/null +++ b/windows/resources/resources.rc @@ -0,0 +1,175 @@ +// Microsoft Visual C++ generated resource script. +// +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// 涓枃(绠浣擄紝涓浗) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS) +LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 1,0,0,0 + PRODUCTVERSION 1,0,0,0 + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "080404b0" + BEGIN + VALUE "CompanyName", "lifegpc" + VALUE "FileDescription", "EH 涓嬭浇鍣ㄨ祫婧" + VALUE "FileVersion", "1.0.0.0" + VALUE "InternalName", "resource.dll" + VALUE "LegalCopyright", "Copyright (C) 2024 lifegpc" + VALUE "OriginalFilename", "resource.dll" + VALUE "ProductName", "eh_downloader_flutter" + VALUE "ProductVersion", "1.0.0.0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x804, 1200 + END +END + + +///////////////////////////////////////////////////////////////////////////// +// +// String Table +// + +STRINGTABLE +BEGIN + IDS_JPEG "JPEG 鏂囦欢" + IDS_PNG "PNG 鏂囦欢" + IDS_GIF "GIF 鏂囦欢" + IDS_ZIP "ZIP 鏂囦欢" +END + +#endif // 涓枃(绠浣擄紝涓浗) resources +///////////////////////////////////////////////////////////////////////////// + + +///////////////////////////////////////////////////////////////////////////// +// 鑻辫(缇庡浗) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 1,0,0,0 + PRODUCTVERSION 1,0,0,0 + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", "lifegpc" + VALUE "FileDescription", "Resources for EH Downloader" + VALUE "FileVersion", "1.0.0.0" + VALUE "InternalName", "resource.dll" + VALUE "LegalCopyright", "Copyright (C) 2024 lifegpc" + VALUE "OriginalFilename", "resource.dll" + VALUE "ProductName", "eh_downloader_flutter" + VALUE "ProductVersion", "1.0.0.0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END + + +///////////////////////////////////////////////////////////////////////////// +// +// String Table +// + +STRINGTABLE +BEGIN + IDS_JPEG "JPEG File" + IDS_PNG "PNG File" + IDS_GIF "GIF File" + IDS_ZIP "ZIP File" +END + +#endif // 鑻辫(缇庡浗) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/windows/resources/resources.sln b/windows/resources/resources.sln new file mode 100644 index 0000000..8bc01c4 --- /dev/null +++ b/windows/resources/resources.sln @@ -0,0 +1,31 @@ +锘 +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34607.119 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "resources", "resources.vcxproj", "{8B64A30E-3DDE-43BA-B7F6-6817A84A3F8F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8B64A30E-3DDE-43BA-B7F6-6817A84A3F8F}.Debug|x64.ActiveCfg = Debug|x64 + {8B64A30E-3DDE-43BA-B7F6-6817A84A3F8F}.Debug|x64.Build.0 = Debug|x64 + {8B64A30E-3DDE-43BA-B7F6-6817A84A3F8F}.Debug|x86.ActiveCfg = Debug|Win32 + {8B64A30E-3DDE-43BA-B7F6-6817A84A3F8F}.Debug|x86.Build.0 = Debug|Win32 + {8B64A30E-3DDE-43BA-B7F6-6817A84A3F8F}.Release|x64.ActiveCfg = Release|x64 + {8B64A30E-3DDE-43BA-B7F6-6817A84A3F8F}.Release|x64.Build.0 = Release|x64 + {8B64A30E-3DDE-43BA-B7F6-6817A84A3F8F}.Release|x86.ActiveCfg = Release|Win32 + {8B64A30E-3DDE-43BA-B7F6-6817A84A3F8F}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E5868143-43F2-436E-A5B1-04C60DD28939} + EndGlobalSection +EndGlobal diff --git a/windows/resources/resources.vcxproj b/windows/resources/resources.vcxproj new file mode 100644 index 0000000..f48b194 --- /dev/null +++ b/windows/resources/resources.vcxproj @@ -0,0 +1,144 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {8b64a30e-3dde-43ba-b7f6-6817a84a3f8f} + resources + 10.0 + + + + DynamicLibrary + true + v143 + Unicode + + + DynamicLibrary + false + v143 + true + Unicode + + + DynamicLibrary + true + Unicode + v143 + + + DynamicLibrary + false + true + Unicode + v143 + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;RESOURCES_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + + + Windows + true + false + + + + + Level3 + true + true + true + WIN32;NDEBUG;RESOURCES_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + false + + + + + Level3 + true + _DEBUG;RESOURCES_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + + + Windows + false + false + true + + + + + Level3 + true + true + true + NDEBUG;RESOURCES_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + + + Windows + true + true + false + false + true + + + + + + + + + + + + \ No newline at end of file diff --git a/windows/resources/resources.vcxproj.filters b/windows/resources/resources.vcxproj.filters new file mode 100644 index 0000000..1c0dea6 --- /dev/null +++ b/windows/resources/resources.vcxproj.filters @@ -0,0 +1,27 @@ +锘 + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 澶存枃浠 + + + + + 璧勬簮鏂囦欢 + + + \ No newline at end of file