Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Seamless-Updates: added debugging logs for createReleaseAssets
  • Loading branch information
AliceHincu committed Sep 15, 2024
commit 16b22782a1f9a0779f866d7072f8f8c63150888c
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
Loading