mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-10-25 02:19:11 -04:00
Use correct name for aria2c on windows.
This commit is contained in:
1 parent
5ed095531e
commit
ccb3d8639d
1 file changed
+4
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user