diff --git a/qt/i2pd_qt/i2pd.qrc b/qt/i2pd_qt/i2pd.qrc
index 2abdeb05..4e5523e9 100644
--- a/qt/i2pd_qt/i2pd.qrc
+++ b/qt/i2pd_qt/i2pd.qrc
@@ -1,5 +1,6 @@
-
- images/icon.png
-
+
+ resources/icons/mask.ico
+ resources/images/icon.png
+
diff --git a/qt/i2pd_qt/i2pd.rc b/qt/i2pd_qt/i2pd.rc
new file mode 100644
index 00000000..bebdf1d6
--- /dev/null
+++ b/qt/i2pd_qt/i2pd.rc
@@ -0,0 +1,32 @@
+IDI_ICON1 ICON DISCARDABLE "resources/icons/mask.ico"
+
+#include // needed for VERSIONINFO
+#include "../../libi2pd/version.h"
+
+VS_VERSION_INFO VERSIONINFO
+FILEVERSION I2PD_VERSION_MAJOR,I2PD_VERSION_MINOR,I2PD_VERSION_MICRO,I2PD_VERSION_PATCH
+PRODUCTVERSION I2P_VERSION_MAJOR,I2P_VERSION_MINOR,I2P_VERSION_MICRO,I2P_VERSION_PATCH
+FILEOS VOS_NT_WINDOWS32
+FILETYPE VFT_APP
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904E4" // U.S. English - multilingual (hex)
+ BEGIN
+ VALUE "CompanyName", "PurpleI2P"
+ VALUE "FileDescription", "I2Pd Qt"
+ VALUE "FileVersion", I2PD_VERSION
+ VALUE "InternalName", "i2pd-qt"
+ VALUE "LegalCopyright", "Copyright (C) 2013-2018, The PurpleI2P Project"
+ VALUE "LegalTrademarks1", "Distributed under the BSD 3-Clause software license, see the accompanying file COPYING or https://opensource.org/licenses/BSD-3-Clause."
+ VALUE "OriginalFilename", "i2pd_qt.exe"
+ VALUE "ProductName", "i2pd-qt"
+ VALUE "ProductVersion", I2P_VERSION
+ END
+ END
+
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x0, 1252 // language neutral - multilingual (decimal)
+ END
+END
diff --git a/qt/i2pd_qt/i2pd_qt.pro b/qt/i2pd_qt/i2pd_qt.pro
index b46cfa38..21ef6358 100644
--- a/qt/i2pd_qt/i2pd_qt.pro
+++ b/qt/i2pd_qt/i2pd_qt.pro
@@ -274,10 +274,12 @@ linux:!android {
windows {
message("Using Windows settings")
+ RC_FILE = i2pd.rc
DEFINES += BOOST_USE_WINDOWS_H WINDOWS _WINDOWS WIN32_LEAN_AND_MEAN MINIUPNP_STATICLIB
DEFINES -= UNICODE _UNICODE
BOOST_SUFFIX = -mt
- QMAKE_LDFLAGS = -s -Wl,-rpath,/usr/local/lib -Wl,-Bstatic -static-libgcc -static-libstdc++ -mwindows
+ QMAKE_CXXFLAGS = -Os
+ QMAKE_LFLAGS = -s -Wl,-Bstatic -static-libgcc -static-libstdc++ -mwindows
LIBS = -lminiupnpc \
-lboost_system$$BOOST_SUFFIX \
diff --git a/qt/i2pd_qt/mainwindow.cpp b/qt/i2pd_qt/mainwindow.cpp
index fc1e5985..c3761764 100644
--- a/qt/i2pd_qt/mainwindow.cpp
+++ b/qt/i2pd_qt/mainwindow.cpp
@@ -449,7 +449,7 @@ void MainWindow::createTrayIcon() {
}
void MainWindow::setIcon() {
- QIcon icon(":/images/icon.png");
+ QIcon icon(":icons/mask");
trayIcon->setIcon(icon);
setWindowIcon(icon);
diff --git a/qt/i2pd_qt/resources/icons/mask.ico b/qt/i2pd_qt/resources/icons/mask.ico
new file mode 100644
index 00000000..f5807de5
Binary files /dev/null and b/qt/i2pd_qt/resources/icons/mask.ico differ
diff --git a/qt/i2pd_qt/images/icon.png b/qt/i2pd_qt/resources/images/icon.png
similarity index 100%
rename from qt/i2pd_qt/images/icon.png
rename to qt/i2pd_qt/resources/images/icon.png