mirror of
https://github.com/yuzu-emu/citra-qt-installer.git
synced 2024-11-22 09:15:43 +01:00
Persist the folder inside of the metadata 7z file.
This commit is contained in:
parent
0b070e0e81
commit
937102cf8e
@ -120,7 +120,7 @@ async function execute() {
|
|||||||
updatesAvailable = true;
|
updatesAvailable = true;
|
||||||
|
|
||||||
// Create the temporary working directory.
|
// Create the temporary working directory.
|
||||||
const workingDirectoryPath = `${tempDir}/${name}_tmp`;
|
const workingDirectoryPath = `${tempDir}/${name}`;
|
||||||
fs.ensureDirSync(workingDirectoryPath);
|
fs.ensureDirSync(workingDirectoryPath);
|
||||||
|
|
||||||
// Copy license
|
// Copy license
|
||||||
@ -128,7 +128,7 @@ async function execute() {
|
|||||||
fs.copySync(`scripts/${scriptName}.qs`, `${workingDirectoryPath}/installscript.qs`);
|
fs.copySync(`scripts/${scriptName}.qs`, `${workingDirectoryPath}/installscript.qs`);
|
||||||
|
|
||||||
// Create 7zip archive
|
// 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.
|
// Copy the metadata file into the target path.
|
||||||
logger.debug(`Creating target metadata for ${name} at ${targetMetadataFilePath}`);
|
logger.debug(`Creating target metadata for ${name} at ${targetMetadataFilePath}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user