1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

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

This commit is contained in:
Alice 2024-09-15 22:17:44 +03:00 committed by GitHub
parent 93f96c03b1
commit e2e589e907
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,