mirror of https://github.com/kiwix/libkiwix.git
Use correct name for aria2c on windows.
This commit is contained in:
parent
5ed095531e
commit
ccb3d8639d
|
@ -36,7 +36,11 @@ Aria2::Aria2():
|
|||
std::string rpc_secret = "--rpc-secret=" + m_secret;
|
||||
m_secret = "token:"+m_secret;
|
||||
|
||||
#ifdef _WIN32
|
||||
callCmd.push_back("aria2c.exe");
|
||||
#else
|
||||
callCmd.push_back("aria2c");
|
||||
#endif
|
||||
callCmd.push_back("--enable-rpc");
|
||||
callCmd.push_back(rpc_secret.c_str());
|
||||
callCmd.push_back(rpc_port.c_str());
|
||||
|
|
Loading…
Reference in New Issue