mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Updated Airbnb style guide used
The updated style guide made a number of new suggestions, so the config and the code have been updated to reflect them.
This commit is contained in:
+13
-4
@@ -41,7 +41,7 @@ function compress(sourcePath, destPath) {
|
||||
'a',
|
||||
'-r',
|
||||
destPath,
|
||||
'.' + path.sep + path.join(sourcePath, '*'),
|
||||
path.join('.', sourcePath, '*'),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -192,13 +192,22 @@ vulcanize(rootPath);
|
||||
const releasePaths = helpers.getAppReleasePaths(rootPath);
|
||||
for (let i = 0; i < releasePaths.length; ++i) {
|
||||
if (releasePaths[i].label) {
|
||||
createAppArchive(rootPath, releasePaths[i].path, tempPath, path.join(rootPath, 'build', 'LOOT ' + gitDesc + ' (' + releasePaths[i].label + ').7z'));
|
||||
const filename = `LOOT ${gitDesc} (${releasePaths[i].label}).7z`;
|
||||
createAppArchive(rootPath,
|
||||
releasePaths[i].path,
|
||||
tempPath,
|
||||
path.join(rootPath, 'build', filename));
|
||||
} else {
|
||||
createAppArchive(releasePaths[i].path, path.join(rootPath, 'build', 'LOOT ' + gitDesc + '.7z'));
|
||||
createAppArchive(releasePaths[i].path,
|
||||
path.join(rootPath, 'build', `LOOT ${gitDesc}.7z`));
|
||||
}
|
||||
}
|
||||
|
||||
const binaryPaths = helpers.getApiBinaryPaths(rootPath);
|
||||
for (let i = 0; i < binaryPaths.length; ++i) {
|
||||
createApiArchive(rootPath, binaryPaths[i].path, tempPath, path.join(rootPath, 'build', 'LOOT API ' + gitDesc + ' (' + binaryPaths[i].label + ').7z'));
|
||||
const filename = `LOOT API ${gitDesc} (${binaryPaths[i].label}).7z`;
|
||||
createApiArchive(rootPath,
|
||||
binaryPaths[i].path,
|
||||
tempPath,
|
||||
path.join(rootPath, 'build', filename));
|
||||
}
|
||||
|
||||
@@ -40,4 +40,4 @@ helpers.getAppReleasePaths(rootPath).forEach((releasePath) => {
|
||||
output: path.join(outputPath, 'index.html'),
|
||||
input: path.join(rootPath, 'src', 'gui', 'html', 'index.html'),
|
||||
}, runVulcanize);
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user