improve app behavior when compiled statically
This commit is contained in:
parent
bd7cb87525
commit
b1f45d75fd
|
@ -82,6 +82,10 @@ win32 {
|
|||
|
||||
# Additionally link against Shell32.
|
||||
LIBS *= Shell32.lib
|
||||
|
||||
static {
|
||||
LIBS *= -lodbc32
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<url type="donation">https://github.com/sponsors/martinrotter</url>
|
||||
<content_rating type="oars-1.1" />
|
||||
<releases>
|
||||
<release version="4.0.4" date="2021-12-20"/>
|
||||
<release version="4.0.4" date="2021-12-21"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.0">
|
||||
<content_attribute id="violence-cartoon">none</content_attribute>
|
||||
|
|
|
@ -30,6 +30,13 @@ int main(int argc, char* argv[]) {
|
|||
QApplication::setDesktopFileName(APP_DESKTOP_ENTRY_FILE);
|
||||
#endif
|
||||
|
||||
#if defined(QT_STATIC)
|
||||
// NOTE: Add all used resources here.
|
||||
Q_INIT_RESOURCE(icons);
|
||||
Q_INIT_RESOURCE(sql);
|
||||
Q_INIT_RESOURCE(rssguard);
|
||||
#endif
|
||||
|
||||
// Ensure that ini format is used as application settings storage on macOS.
|
||||
QSettings::setDefaultFormat(QSettings::IniFormat);
|
||||
|
||||
|
|
Loading…
Reference in New Issue