fix(site): link mobile APK and desktop EXE directly to Forgejo release attachments
This commit is contained in:
parent
3e4ca38926
commit
692338926d
2 changed files with 18 additions and 15 deletions
|
|
@ -20,7 +20,7 @@ export const OS_CONFIGS: Record<ClientOSType, ClientOSInfo> = {
|
||||||
os: 'android',
|
os: 'android',
|
||||||
osName: 'Android',
|
osName: 'Android',
|
||||||
isMobile: true,
|
isMobile: true,
|
||||||
downloadUrl: 'https://d3ro.chanpaca.net/releases/1.0.0/d3ro-voice-v1.0.0-signed.apk',
|
downloadUrl: 'https://git.chanpaca.net/attachments/5220bdb9-e8ce-4d6a-b016-dab08dd756b8',
|
||||||
downloadFilename: 'd3ro-voice-v1.0.0-signed.apk',
|
downloadFilename: 'd3ro-voice-v1.0.0-signed.apk',
|
||||||
badgeText: 'ANDROID APK v1.0.0',
|
badgeText: 'ANDROID APK v1.0.0',
|
||||||
buttonLabelKo: 'Android용 무료 다운로드 (APK)',
|
buttonLabelKo: 'Android용 무료 다운로드 (APK)',
|
||||||
|
|
@ -44,7 +44,7 @@ export const OS_CONFIGS: Record<ClientOSType, ClientOSInfo> = {
|
||||||
os: 'windows',
|
os: 'windows',
|
||||||
osName: 'Windows',
|
osName: 'Windows',
|
||||||
isMobile: false,
|
isMobile: false,
|
||||||
downloadUrl: 'https://d3ro.chanpaca.net/releases/1.0.0/D3RO-Voice-Setup-1.0.0-x64.exe',
|
downloadUrl: 'https://git.chanpaca.net/attachments/c281a224-2538-496a-bf74-bc188938c734',
|
||||||
downloadFilename: 'D3RO-Voice-Setup-1.0.0-x64.exe',
|
downloadFilename: 'D3RO-Voice-Setup-1.0.0-x64.exe',
|
||||||
badgeText: 'WINDOWS x64 v1.0.0',
|
badgeText: 'WINDOWS x64 v1.0.0',
|
||||||
buttonLabelKo: 'Windows용 무료 다운로드',
|
buttonLabelKo: 'Windows용 무료 다운로드',
|
||||||
|
|
|
||||||
|
|
@ -136,10 +136,10 @@ export function Download() {
|
||||||
<a
|
<a
|
||||||
href={
|
href={
|
||||||
detectedOs === 'mac'
|
detectedOs === 'mac'
|
||||||
? '/releases/1.0.0/D3RO-Voice-1.0.0-arm64.dmg'
|
? 'https://git.chanpaca.net/yunchan/d3ro-voice/releases'
|
||||||
: '/releases/1.0.0/D3RO-Voice-Setup-1.0.0-x64.exe'
|
: 'https://git.chanpaca.net/attachments/c281a224-2538-496a-bf74-bc188938c734'
|
||||||
}
|
}
|
||||||
download
|
download={detectedOs === 'mac' ? undefined : 'D3RO-Voice-Setup-1.0.0-x64.exe'}
|
||||||
className="w-full py-4 px-8 rounded-xl bg-brand-amber hover:bg-brand-amber-light text-white font-mono text-sm font-bold uppercase tracking-wider flex items-center justify-center gap-3 shadow-glow-sm hover:shadow-glow-md transition-all active:scale-[0.99]"
|
className="w-full py-4 px-8 rounded-xl bg-brand-amber hover:bg-brand-amber-light text-white font-mono text-sm font-bold uppercase tracking-wider flex items-center justify-center gap-3 shadow-glow-sm hover:shadow-glow-md transition-all active:scale-[0.99]"
|
||||||
>
|
>
|
||||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5">
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5">
|
||||||
|
|
@ -204,16 +204,17 @@ export function Download() {
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<a
|
<a
|
||||||
href="/releases/1.0.0/D3RO-Voice-Setup-1.0.0-x64.exe"
|
href="https://git.chanpaca.net/attachments/c281a224-2538-496a-bf74-bc188938c734"
|
||||||
download
|
download="D3RO-Voice-Setup-1.0.0-x64.exe"
|
||||||
className="w-full py-2.5 px-4 rounded-lg bg-surface-700 hover:bg-surface-600 border border-white/[0.08] hover:border-brand-amber/40 text-neutral-200 font-mono text-xs flex items-center justify-between transition-all"
|
className="w-full py-2.5 px-4 rounded-lg bg-surface-700 hover:bg-surface-600 border border-white/[0.08] hover:border-brand-amber/40 text-neutral-200 font-mono text-xs flex items-center justify-between transition-all"
|
||||||
>
|
>
|
||||||
<span className="font-semibold">Setup Installer (.exe)</span>
|
<span className="font-semibold">Setup Installer (.exe)</span>
|
||||||
<span className="text-neutral-400">102 MB</span>
|
<span className="text-neutral-400">102 MB</span>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
href="/releases/1.0.0/D3RO-Voice-Setup-1.0.0-x64.exe.blockmap"
|
href="https://git.chanpaca.net/yunchan/d3ro-voice/releases"
|
||||||
download
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
className="w-full py-2 px-4 rounded-lg bg-surface-900/40 text-neutral-500 font-mono text-[11px] flex items-center justify-between"
|
className="w-full py-2 px-4 rounded-lg bg-surface-900/40 text-neutral-500 font-mono text-[11px] flex items-center justify-between"
|
||||||
>
|
>
|
||||||
<span>Blockmap (.blockmap)</span>
|
<span>Blockmap (.blockmap)</span>
|
||||||
|
|
@ -239,16 +240,18 @@ export function Download() {
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<a
|
<a
|
||||||
href="/releases/1.0.0/D3RO-Voice-1.0.0-arm64.dmg"
|
href="https://git.chanpaca.net/yunchan/d3ro-voice/releases"
|
||||||
download
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
className="w-full py-2.5 px-4 rounded-lg bg-surface-700 hover:bg-surface-600 border border-white/[0.08] hover:border-purple-400/40 text-neutral-200 font-mono text-xs flex items-center justify-between transition-all"
|
className="w-full py-2.5 px-4 rounded-lg bg-surface-700 hover:bg-surface-600 border border-white/[0.08] hover:border-purple-400/40 text-neutral-200 font-mono text-xs flex items-center justify-between transition-all"
|
||||||
>
|
>
|
||||||
<span className="font-semibold">Apple Silicon DMG (.dmg)</span>
|
<span className="font-semibold">Apple Silicon DMG (.dmg)</span>
|
||||||
<span className="text-neutral-400">98 MB</span>
|
<span className="text-neutral-400">98 MB</span>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
href="/releases/1.0.0/D3RO-Voice-1.0.0-arm64-mac.zip"
|
href="https://git.chanpaca.net/yunchan/d3ro-voice/releases"
|
||||||
download
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
className="w-full py-2 px-4 rounded-lg bg-surface-900/40 text-neutral-500 font-mono text-[11px] flex items-center justify-between"
|
className="w-full py-2 px-4 rounded-lg bg-surface-900/40 text-neutral-500 font-mono text-[11px] flex items-center justify-between"
|
||||||
>
|
>
|
||||||
<span>Portable (.zip)</span>
|
<span>Portable (.zip)</span>
|
||||||
|
|
@ -274,12 +277,12 @@ export function Download() {
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<a
|
<a
|
||||||
href="/releases/1.0.0/d3ro-voice-v1.0.0-signed.zip"
|
href="https://git.chanpaca.net/attachments/5220bdb9-e8ce-4d6a-b016-dab08dd756b8"
|
||||||
download="d3ro-voice-v1.0.0-signed.apk"
|
download="d3ro-voice-v1.0.0-signed.apk"
|
||||||
className="w-full py-2.5 px-4 rounded-lg bg-surface-700 hover:bg-surface-600 border border-white/[0.08] hover:border-emerald-400/40 text-neutral-200 font-mono text-xs flex items-center justify-between transition-all"
|
className="w-full py-2.5 px-4 rounded-lg bg-surface-700 hover:bg-surface-600 border border-white/[0.08] hover:border-emerald-400/40 text-neutral-200 font-mono text-xs flex items-center justify-between transition-all"
|
||||||
>
|
>
|
||||||
<span className="font-semibold">Android Release APK (.apk)</span>
|
<span className="font-semibold">Android Release APK (.apk)</span>
|
||||||
<span className="text-emerald-400">Download (47MB) →</span>
|
<span className="text-emerald-400">Download (47.5MB) →</span>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
href="#download"
|
href="#download"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue