Remove the metadata validator from the repository

This commit is contained in:
Oliver Hamlet
2017-02-05 18:23:13 +00:00
parent 8a9470a9bc
commit 1f73c46010
8 changed files with 2 additions and 160 deletions
-25
View File
@@ -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));
});
-10
View File
@@ -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
}