diff --git a/res/vesc.ico b/res/vesc.ico new file mode 100644 index 000000000..2750cb461 Binary files /dev/null and b/res/vesc.ico differ diff --git a/vesc_tool.pro b/vesc_tool.pro index f2e0a301a..5aa11d9c8 100644 --- a/vesc_tool.pro +++ b/vesc_tool.pro @@ -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 diff --git a/winresources.rc b/winresources.rc new file mode 100644 index 000000000..84b7db57b --- /dev/null +++ b/winresources.rc @@ -0,0 +1,37 @@ +IDI_ICON1 ICON "res/vesc.ico" + +#include + +#define VER_FILEVERSION 1,0,0,0 +#define VER_FILEVERSION_STR "1.0.0.0\0" +#define VER_PRODUCTVERSION 6,0,2 +#define VER_PRODUCTVERSION_STR "6.0.2\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_test.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