Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows resources file / Icon #282

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,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