From 937102cf8e66c05fe6ef7c2b5527b8f21e1e7295 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sun, 20 Aug 2017 03:03:31 -0400 Subject: [PATCH] Persist the folder inside of the metadata 7z file. --- repository/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repository/app.js b/repository/app.js index e477e5a..666fb6e 100644 --- a/repository/app.js +++ b/repository/app.js @@ -120,7 +120,7 @@ async function execute() { updatesAvailable = true; // Create the temporary working directory. - const workingDirectoryPath = `${tempDir}/${name}_tmp`; + const workingDirectoryPath = `${tempDir}/${name}`; fs.ensureDirSync(workingDirectoryPath); // Copy license @@ -128,7 +128,7 @@ async function execute() { fs.copySync(`scripts/${scriptName}.qs`, `${workingDirectoryPath}/installscript.qs`); // Create 7zip archive - exec.sync(zip_bin, ["a", "../meta.7z"], {"cwd": workingDirectoryPath}); + exec.sync(zip_bin, ["a", "meta.7z", name], {"cwd": tempDir}); // Copy the metadata file into the target path. logger.debug(`Creating target metadata for ${name} at ${targetMetadataFilePath}`);