🔧 Line endings are normalized to LF

This commit is contained in:
bitcookies
2026-07-21 21:51:37 +08:00
parent 8e62a4535c
commit 8a8c08ad96
4 changed files with 17 additions and 7 deletions
+2 -1
View File
@@ -5,7 +5,7 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Version # Version
set(APP_VERSION "4.2.0") set(APP_VERSION "4.3.0")
add_executable(winrar-keygen add_executable(winrar-keygen
_tmain.cpp _tmain.cpp
@@ -20,6 +20,7 @@ add_executable(winrar-keygen
) )
if(WIN32) if(WIN32)
enable_language(RC)
target_sources(winrar-keygen PRIVATE winrar-keygen.rc) target_sources(winrar-keygen PRIVATE winrar-keygen.rc)
endif() endif()
+10 -1
View File
@@ -25,7 +25,7 @@
#endif #endif
#ifndef APP_VERSION #ifndef APP_VERSION
#define APP_VERSION "4.2.0" #define APP_VERSION "4.3.0"
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
@@ -393,6 +393,15 @@ int CompareAndPrintUpdate(const std::string& currentVersion, const std::string&
Version local = ParseVersion(currentVersion); Version local = ParseVersion(currentVersion);
Version remote = ParseVersion(remoteTag); Version remote = ParseVersion(remoteTag);
if (!local.valid) {
#ifdef _WIN32
std::wcerr << L"Error: Could not parse current version '" << Utf8ToWide(currentVersion) << L"'.\n";
#else
std::cerr << "Error: Could not parse current version '" << currentVersion << "'.\n";
#endif
return -1;
}
if (!remote.valid) { if (!remote.valid) {
#ifdef _WIN32 #ifdef _WIN32
std::wcerr << L"Error: Could not parse remote version '" << Utf8ToWide(remoteTag) << L"'.\n"; std::wcerr << L"Error: Could not parse remote version '" << Utf8ToWide(remoteTag) << L"'.\n";
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "winrar-keygen", "name": "winrar-keygen",
"version": "4.2.0", "version": "4.3.0",
"dependencies": [ "dependencies": [
"gmp" "gmp"
] ]
+4 -4
View File
@@ -51,8 +51,8 @@ END
// //
VS_VERSION_INFO VERSIONINFO VS_VERSION_INFO VERSIONINFO
FILEVERSION 4,2,0,0 FILEVERSION 4,3,0,0
PRODUCTVERSION 4,2,0,0 PRODUCTVERSION 4,3,0,0
FILEFLAGSMASK 0x3fL FILEFLAGSMASK 0x3fL
#ifdef _DEBUG #ifdef _DEBUG
FILEFLAGS 0x1L FILEFLAGS 0x1L
@@ -69,12 +69,12 @@ BEGIN
BEGIN BEGIN
VALUE "CompanyName", "WinRAR Keygen" VALUE "CompanyName", "WinRAR Keygen"
VALUE "FileDescription", "WinRAR Key Generation Tool" VALUE "FileDescription", "WinRAR Key Generation Tool"
VALUE "FileVersion", "4.2.0" VALUE "FileVersion", "4.3.0"
VALUE "InternalName", "winrar-keygen.exe" VALUE "InternalName", "winrar-keygen.exe"
VALUE "LegalCopyright", "Copyright (C) 2021 Bitcookies" VALUE "LegalCopyright", "Copyright (C) 2021 Bitcookies"
VALUE "OriginalFilename", "winrar-keygen.exe" VALUE "OriginalFilename", "winrar-keygen.exe"
VALUE "ProductName", "WinRAR Keygen" VALUE "ProductName", "WinRAR Keygen"
VALUE "ProductVersion", "4.2.0" VALUE "ProductVersion", "4.3.0"
END END
END END
BLOCK "VarFileInfo" BLOCK "VarFileInfo"