mirror of
https://github.com/yuzu-emu/citra-qt-installer.git
synced 2024-11-22 11:55:39 +01:00
Still target push regardless of if you created a metadata file. This was causing skipped metadata to fall off the Updates.xml list.
This commit is contained in:
parent
2975b386dc
commit
2cc459644e
@ -113,33 +113,32 @@ async function execute() {
|
|||||||
const targetMetadataFilePath = `${distDir}/${name}/${version}meta.7z`;
|
const targetMetadataFilePath = `${distDir}/${name}/${version}meta.7z`;
|
||||||
if (fs.existsSync(targetMetadataFilePath)) {
|
if (fs.existsSync(targetMetadataFilePath)) {
|
||||||
logger.info(`Metadata information already exists for ${name} ${version}, skipping.`);
|
logger.info(`Metadata information already exists for ${name} ${version}, skipping.`);
|
||||||
return;
|
} else {
|
||||||
|
logger.info(`Building release information for ${name} ${version}.`);
|
||||||
|
updatesAvailable = true;
|
||||||
|
|
||||||
|
// Create the temporary working directory.
|
||||||
|
const workingDirectoryPath = `${tempDir}/${name}`;
|
||||||
|
fs.ensureDirSync(workingDirectoryPath);
|
||||||
|
|
||||||
|
// Copy license
|
||||||
|
fs.copySync("license.txt", `${workingDirectoryPath}/license.txt`);
|
||||||
|
fs.copySync(`scripts/${scriptName}.qs`, `${workingDirectoryPath}/installscript.qs`);
|
||||||
|
|
||||||
|
// Create 7zip archive
|
||||||
|
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}`);
|
||||||
|
fs.moveSync(`${tempDir}/meta.7z`, targetMetadataFilePath);
|
||||||
|
|
||||||
|
// Cleanup temporary working directory.
|
||||||
|
fs.removeSync(workingDirectoryPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info(`Building release information for ${name} ${version}.`);
|
|
||||||
updatesAvailable = true;
|
|
||||||
|
|
||||||
// Create the temporary working directory.
|
|
||||||
const workingDirectoryPath = `${tempDir}/${name}`;
|
|
||||||
fs.ensureDirSync(workingDirectoryPath);
|
|
||||||
|
|
||||||
// Copy license
|
|
||||||
fs.copySync("license.txt", `${workingDirectoryPath}/license.txt`);
|
|
||||||
fs.copySync(`scripts/${scriptName}.qs`, `${workingDirectoryPath}/installscript.qs`);
|
|
||||||
|
|
||||||
// Create 7zip archive
|
|
||||||
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}`);
|
|
||||||
fs.moveSync(`${tempDir}/meta.7z`, targetMetadataFilePath);
|
|
||||||
|
|
||||||
// Create metadata for the Update.xml
|
// Create metadata for the Update.xml
|
||||||
var metaHash = sha1(targetMetadataFilePath);
|
var metaHash = sha1(targetMetadataFilePath);
|
||||||
|
|
||||||
// Cleanup temporary working directory.
|
|
||||||
fs.removeSync(workingDirectoryPath);
|
|
||||||
|
|
||||||
let target = [];
|
let target = [];
|
||||||
target.push({"Name": name});
|
target.push({"Name": name});
|
||||||
target.push({"DisplayName": target_source.DisplayName.replace("%platform%", platform)});
|
target.push({"DisplayName": target_source.DisplayName.replace("%platform%", platform)});
|
||||||
|
Loading…
Reference in New Issue
Block a user