From e2e589e9070ca3b80c9f5cba9a1a331839532b02 Mon Sep 17 00:00:00 2001 From: Alice <53339016+AliceHincu@users.noreply.github.com> Date: Sun, 15 Sep 2024 22:17:44 +0300 Subject: [PATCH] Desktop: Seamless-Updates: added debugging logs for createReleaseAssets (#11053) --- packages/app-desktop/tools/modifyReleaseAssets.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/app-desktop/tools/modifyReleaseAssets.ts b/packages/app-desktop/tools/modifyReleaseAssets.ts index 14a7aa36e..82d1246f9 100644 --- a/packages/app-desktop/tools/modifyReleaseAssets.ts +++ b/packages/app-desktop/tools/modifyReleaseAssets.ts @@ -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,