Persist the folder inside of the metadata 7z file.

This commit is contained in:
chris062689 2017-08-20 03:03:31 -04:00
parent 0b070e0e81
commit 937102cf8e

View file

@ -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}`);