Add installer
This commit is contained in:
parent
c9bc8aa8c1
commit
a2a5cafc5f
73 changed files with 4354 additions and 488 deletions
16
service/server/main.cpp
Normal file
16
service/server/main.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include <QSettings>
|
||||
#include <QDir>
|
||||
|
||||
#include "server.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
#if !defined(Q_OS_WIN)
|
||||
// QtService stores service settings in SystemScope, which normally require root privileges.
|
||||
// To allow testing this example as non-root, we change the directory of the SystemScope settings file.
|
||||
QSettings::setPath(QSettings::NativeFormat, QSettings::SystemScope, QDir::tempPath());
|
||||
qWarning("(Example uses dummy settings file: %s/QtSoftware.conf)", QDir::tempPath().toLatin1().constData());
|
||||
#endif
|
||||
HttpService service(argc, argv);
|
||||
return service.exec();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue