Skip to content

Commit

Permalink
Desktop: Seamless-Updates: added debugging logs for createReleaseAsse…
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceHincu authored Sep 15, 2024
1 parent 93f96c0 commit e2e589e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/app-desktop/tools/modifyReleaseAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e2e589e

Please sign in to comment.