Skip to content

Commit

Permalink
Windows resources file
Browse files Browse the repository at this point in the history
Icon created using the following command:
convert  ios/Images.xcassets/AppIcon.appiconset/1024.png  -define icon:auto-resize=256,64,48,32,16 res/vesc.ico

Signed-off-by: Dado Mista <dadomista@gmail.com>
  • Loading branch information
surfdado committed Dec 9, 2022
1 parent 74f750f commit b1def11
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
Binary file added res/vesc.ico
Binary file not shown.
2 changes: 2 additions & 0 deletions vesc_tool.pro
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ VT_CONFIG_VERSION = 2
# Set to 0 for stable versions and to test version number for development versions.
VT_IS_TEST_VERSION = 0

win32: RC_FILE = winresources.rc

VT_ANDROID_VERSION_ARMV7 = 120
VT_ANDROID_VERSION_ARM64 = 121
VT_ANDROID_VERSION_X86 = 122
Expand Down
37 changes: 37 additions & 0 deletions winresources.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
IDI_ICON1 ICON "res/vesc.ico"

#include <windows.h>

#define VER_FILEVERSION 1,0,0,0
#define VER_FILEVERSION_STR "1.0.0.0\0"
#define VER_PRODUCTVERSION 6,0,0
#define VER_PRODUCTVERSION_STR "6.0.0\0"
#define VER_FILEDESCRIPTION_STR "VESC Tool"
#define VER_INTERNALNAME_STR "VESC tool"
#define VER_LEGALCOPYRIGHT_STR "Copyright (C) 2016-2022, Benjamin Vedder"
#define VER_ORIGINALFILENAME_STR "vesc_tool_6.00.exe"
#define VER_PRODUCTNAME_STR "VESC Tool"

VS_VERSION_INFO VERSIONINFO
FILEVERSION VER_FILEVERSION
PRODUCTVERSION VER_PRODUCTVERSION
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "FileDescription", VER_FILEDESCRIPTION_STR
VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "InternalName", VER_INTERNALNAME_STR
VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR
VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
VALUE "ProductName", VER_PRODUCTNAME_STR
VALUE "ProductVersion", VER_PRODUCTVERSION_STR
END
END

BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END

0 comments on commit b1def11

Please sign in to comment.