Release link and updater toast touchups on Nightly (#6881)

pierremtb/adhoc/clean-up-nightly-on-merge-more
This commit is contained in:
Pierre Jacquier
2025-05-12 16:20:12 -04:00
committed by GitHub
parent 1a8f80a7dc
commit 818d9a0d77
3 changed files with 29 additions and 22 deletions

View File

@ -22,7 +22,9 @@ export const IS_NIGHTLY_OR_DEBUG =
IS_NIGHTLY || APP_VERSION === '0.0.0' || APP_VERSION === '11.22.33'
export function getReleaseUrl(version: string = APP_VERSION) {
return `https://github.com/KittyCAD/modeling-app/releases/tag/${
IS_NIGHTLY ? 'nightly-' : ''
}v${version}`
if (IS_NIGHTLY_OR_DEBUG || version === 'main') {
return 'https://github.com/KittyCAD/modeling-app/commits/main'
}
return `https://github.com/KittyCAD/modeling-app/releases/tag/v${version}`
}