mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-24 04:20:56 -04:00
Can now deal with POSIX binary (not only with exe)
This commit is contained in:
parent
a194c21303
commit
d5438fe0ea
@ -122,8 +122,11 @@ int main(int argc, char **argv) {
|
|||||||
/* Check if kiwixPath/kiwix/kiwix.exe exists */
|
/* Check if kiwixPath/kiwix/kiwix.exe exists */
|
||||||
string kiwixBinaryPath = computeAbsolutePath(kiwixPath, "kiwix/kiwix.exe");
|
string kiwixBinaryPath = computeAbsolutePath(kiwixPath, "kiwix/kiwix.exe");
|
||||||
if (!fileExists(kiwixBinaryPath)) {
|
if (!fileExists(kiwixBinaryPath)) {
|
||||||
cerr << "Unable to find the Kiwix Windows binary at '" << kiwixBinaryPath << "'." << endl;
|
kiwixBinaryPath = computeAbsolutePath(kiwixPath, "kiwix/kiwix");
|
||||||
exit(1);
|
if (!fileExists(kiwixBinaryPath)) {
|
||||||
|
cerr << "Unable to find the Kiwix binary at '" << kiwixBinaryPath << "[.exe]'." << endl;
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if the directory "data" structure exists */
|
/* Check if the directory "data" structure exists */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user