Skip to content

Commit f12be91

Browse files
committed
Fixed a crucial repo redundancy when refreshing
1 parent e82177f commit f12be91

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

DeskThingServer/src/main/services/releases/releaseUtils.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,14 @@ export async function handleRefreshReleaseFile<T extends 'app' | 'client'>(
446446
)
447447
)
448448

449+
// This is a pretty worst-case scenario, but if the release file is empty, we should add the default repositories
450+
if (releaseFile.releases.length == 0) {
451+
// automatically add deskthing releases
452+
const { appsRepo, clientRepo } = await import('../../static/releaseMetadata')
453+
await addRepositoryUrl(appsRepo)
454+
await addRepositoryUrl(clientRepo)
455+
}
456+
449457
if (type == 'app') {
450458
const finalReleaseFile: AppReleaseFile0118 = {
451459
version: '0.11.8',

0 commit comments

Comments
 (0)