mirror of
https://github.com/laurent22/joplin.git
synced 2026-10-25 02:47:28 +00:00
Desktop: Seamless-Updates: added debugging logs for createReleaseAssets (#11053)
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user