mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Remove the metadata validator from the repository
This commit is contained in:
@@ -203,23 +203,6 @@ function createApiArchive(rootPath, releasePath, tempPath, destPath) {
|
||||
fs.removeSync(tempPath);
|
||||
}
|
||||
|
||||
function createMetadataValidatorArchive(rootPath, binaryPath, tempPath, destPath) {
|
||||
// Ensure that the output directory is empty.
|
||||
fs.emptyDirSync(tempPath);
|
||||
|
||||
// Metadata validator binary.
|
||||
fs.copySync(
|
||||
binaryPath,
|
||||
path.join(tempPath, path.basename(binaryPath))
|
||||
);
|
||||
|
||||
// Now compress the folder to a 7-zip archive.
|
||||
compress(tempPath, destPath);
|
||||
|
||||
// Finally, delete the temporary folder.
|
||||
fs.removeSync(tempPath);
|
||||
}
|
||||
|
||||
function getFilenameSuffix(label, gitDescription) {
|
||||
if (label) {
|
||||
return `${gitDescription}_${label}`;
|
||||
@@ -261,11 +244,3 @@ helpers.getApiBinaryPaths(rootPath).forEach(binaryPath => {
|
||||
path.join(rootPath, 'build', filename),
|
||||
path.join(rootPath, 'build', filename + fileExtension));
|
||||
});
|
||||
|
||||
helpers.getMetadataValidatorBinaryPaths(rootPath).forEach(binaryPath => {
|
||||
const filename = `metadata-validator_${getFilenameSuffix(binaryPath.label, gitDesc)}`;
|
||||
createMetadataValidatorArchive(rootPath,
|
||||
binaryPath.path,
|
||||
path.join(rootPath, 'build', filename),
|
||||
path.join(rootPath, 'build', filename + fileExtension));
|
||||
});
|
||||
|
||||
@@ -79,15 +79,6 @@ function getApiBinaryPaths(rootPath) {
|
||||
);
|
||||
}
|
||||
|
||||
function getMetadataValidatorBinaryPaths(rootPath) {
|
||||
let file = 'metadata-validator';
|
||||
if (os.platform() === 'win32') {
|
||||
file += '.exe';
|
||||
}
|
||||
|
||||
return getBinaryPaths(rootPath, file);
|
||||
}
|
||||
|
||||
function safeExecFileSync(file, args, options) {
|
||||
try {
|
||||
return childProcess.execFileSync(file, args, options);
|
||||
@@ -99,5 +90,4 @@ function safeExecFileSync(file, args, options) {
|
||||
module.exports.fileExists = fileExists;
|
||||
module.exports.getAppReleasePaths = getAppReleasePaths;
|
||||
module.exports.getApiBinaryPaths = getApiBinaryPaths;
|
||||
module.exports.getMetadataValidatorBinaryPaths = getMetadataValidatorBinaryPaths;
|
||||
module.exports.safeExecFileSync = safeExecFileSync;
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
{
|
||||
"package": {
|
||||
"name": "metadata-validator",
|
||||
"repo": "loot",
|
||||
"subject": "wrinklyninja"
|
||||
},
|
||||
"version": {
|
||||
"name": "REPLACE_THIS_VERSION"
|
||||
},
|
||||
"files": [{
|
||||
"includePattern": "build/(metadata-validator_.+\\.tar.xz)",
|
||||
"uploadPattern": "$1"
|
||||
}],
|
||||
"publish": true
|
||||
}
|
||||
Reference in New Issue
Block a user