fix(download): serve lovisual.jar from our own origin, not GitHub
The download button pointed at a github.com releases redirect and the changelog at the GitHub API — both unreachable if GitHub itself is blocked for a visitor. The button now links to /downloads/lovisual.jar, served directly from the site's own nginx. Release notes still read the GitHub API (already degrades gracefully to an empty-state message if that fails) since that's changelog content, not the actual download. Claude-Session: https://claude.ai/code/session_01F1M1Jic1wTSn4igUENynmZ
This commit is contained in:
parent
f97f1a7117
commit
e79b0aedd2
2 changed files with 8 additions and 6 deletions
|
|
@ -23,9 +23,7 @@ afterEach(() => vi.restoreAllMocks())
|
|||
test('DownloadButton links straight to the latest lovisual.jar', () => {
|
||||
const { container } = withQuery(<DownloadButton />)
|
||||
const link = container.querySelector('a')
|
||||
expect(link?.getAttribute('href')).toBe(
|
||||
'https://github.com/loki5512344/LoVisual-/releases/latest/download/lovisual.jar',
|
||||
)
|
||||
expect(link?.getAttribute('href')).toBe('/downloads/lovisual.jar')
|
||||
expect(link?.hasAttribute('download')).toBe(true)
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue