Refine self update build options

This commit is contained in:
woblight
2024-08-12 21:08:22 +02:00
parent 3bf728ffff
commit ac8fc70a4e
6 changed files with 51 additions and 21 deletions
-12
View File
@@ -71,18 +71,6 @@ int main(int argc, char *argv[])
} else {
Control::instance()->init();
qmlRegisterUncreatableType<Addon>("GitAddonsManager.engine",1,0,"Addon","");
engine.rootContext()->setContextProperty("gitVersion", QString("%1 (%2 %3)").arg(GIT_DESCRIBE)
#ifdef GAM_BUILD_NAME
.arg(GAM_BUILD_NAME)
#else
.arg(QSysInfo::productType())
#endif
#ifdef GAM_BANCH_NAME
.arg(GAM_BANCH_NAME)
#else
.arg(QSysInfo::buildCpuArchitecture())
#endif
);
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
}
if (engine.rootObjects().isEmpty())