Desktop: Seamless-Updates: added debugging logs for createReleaseAssets (#11053)

This commit is contained in:
Alice authored and GitHub committed 2024-09-15 20:17:44 +01:00
1 parent 93f96c03b1
commit e2e589e907
1 file changed
+8
@@ -42,6 +42,14 @@ const createReleaseAssets = async (context: Context, release: GitHubRelease) =>
}
}
if (zipPath === undefined || dmgPath === undefined) {
const formattedAssets = release.assets.map(asset => ({
name: asset.name,
url: asset.url,
}));
throw new Error(`Zip path: ${zipPath} and/or dmg path: ${dmgPath} are not defined. Logging assets of release: ${JSON.stringify(formattedAssets, null, 2)}`);
}
const info: GenerateInfo = {
version: release.tag_name.slice(1),
dmgPath: dmgPath,