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 18, 2022
1 parent c611725 commit 6a87c98
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 @@ -18,6 +18,8 @@ VT_ANDROID_VERSION_X86 = 128

VT_ANDROID_VERSION = $$VT_ANDROID_VERSION_X86

win32: RC_FILE = winresources.rc

# Ubuntu 18.04 (should work on raspbian buster too)
# sudo apt install qml-module-qt-labs-folderlistmodel qml-module-qtquick-extras qml-module-qtquick-controls2 qt5-default libqt5quickcontrols2-5 qtquickcontrols2-5-dev qtcreator qtcreator-doc libqt5serialport5-dev build-essential qml-module-qt3d qt3d5-dev qtdeclarative5-dev qtconnectivity5-dev qtmultimedia5-dev qtpositioning5-dev qtpositioning5-dev libqt5gamepad5-dev qml-module-qt-labs-settings qml-module-qt-labs-platform libqt5svg5-dev

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 6a87c98

Please sign in to comment.