mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix the archiver using the old API binary filename
This caused the DLLs included in the v0.9.0 and v0.9.1 releases to actually be a DLL built at some point between v0.8.1 and v0.9.0...
This commit is contained in:
+10
-30
@@ -72,41 +72,21 @@ function getApiBinaryPaths(rootPath) {
|
||||
},
|
||||
];
|
||||
|
||||
let file = 'loot_api';
|
||||
if (os.platform() === 'win32') {
|
||||
file += '.dll';
|
||||
} else {
|
||||
file += '.so';
|
||||
}
|
||||
|
||||
for (let i = 0; i < pathsToTry.length; ++i) {
|
||||
let files = [];
|
||||
if (os.platform() === 'win32') {
|
||||
pathsToTry[i].path = path.join(pathsToTry[i].path, 'Release');
|
||||
|
||||
files = [
|
||||
{
|
||||
name: 'loot32.dll',
|
||||
label: '32 bit',
|
||||
},
|
||||
{
|
||||
name: 'loot64.dll',
|
||||
label: '64 bit',
|
||||
},
|
||||
];
|
||||
} else {
|
||||
files = [
|
||||
{
|
||||
name: 'libloot32.so',
|
||||
label: '32 bit',
|
||||
},
|
||||
{
|
||||
name: 'libloot64.so',
|
||||
label: '64 bit',
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
for (let j = 0; j < files.length; ++j) {
|
||||
if (fileExists(path.join(pathsToTry[i].path, files[j].name))) {
|
||||
pathsToTry[i].path = path.join(pathsToTry[i].path, files[j].name);
|
||||
pathsToTry[i].label = files[j].label;
|
||||
paths.push(pathsToTry[i]);
|
||||
break;
|
||||
}
|
||||
if (fileExists(path.join(pathsToTry[i].path, file))) {
|
||||
pathsToTry[i].path = path.join(pathsToTry[i].path, file);
|
||||
paths.push(pathsToTry[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user