Skip to content

Commit d3ec3ea

Browse files
authored
Merge pull request #766 from hiscoder-com/feature-valyukhov-download-page
Change download page
2 parents 58c7e5b + 7e9e5f2 commit d3ec3ea

2 files changed

Lines changed: 23 additions & 13 deletions

File tree

components/StartPage/Download.js

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,32 +53,33 @@ function Download({ t, onClose }) {
5353
fetchVersion()
5454
}, [])
5555

56-
const getDownloadLink = () => {
56+
const getDownloadLink = (type) => {
5757
if (os.os === 'Windows') {
5858
return os.architecture === '64-bit'
59-
? `https://github.com/hiscoder-com/level-desktop/releases/download/v${version}/LEVEL-win-x64-${version}.exe`
60-
: `https://github.com/hiscoder-com/level-desktop/releases/download/v${version}/LEVEL-win-ia32-${version}.exe`
59+
? `https://github.com/hiscoder-com/level-desktop/releases/download/v${version}/LEVEL-win-x64-${version}-${type}.exe`
60+
: `https://github.com/hiscoder-com/level-desktop/releases/download/v${version}/LEVEL-win-ia32-${version}-${type}.exe`
6161
} else if (os.os === 'Linux') {
62-
return `https://github.com/hiscoder-com/level-desktop/releases/download/v${version}/LEVEL_${version}.deb`
62+
return `https://github.com/hiscoder-com/level-desktop/releases/download/v${version}/LEVEL_${version}-${type}.deb`
6363
}
6464
return '#'
6565
}
66+
6667
const allLinks = [
6768
{
6869
label: 'Windows 64-bit',
69-
link: `https://github.com/hiscoder-com/level-desktop/releases/download/v${version}/LEVEL-win-x64-${version}.exe`,
70+
link: `https://github.com/hiscoder-com/level-desktop/releases/download/v${version}/LEVEL-win-x64-${version}-obs.exe`,
7071
},
7172
{
7273
label: 'Windows 32-bit',
73-
link: `https://github.com/hiscoder-com/level-desktop/releases/download/v${version}/LEVEL-win-ia32-${version}.exe`,
74+
link: `https://github.com/hiscoder-com/level-desktop/releases/download/v${version}/LEVEL-win-ia32-${version}-obs.exe`,
7475
},
7576
{
7677
label: 'Linux .deb',
77-
link: `https://github.com/hiscoder-com/level-desktop/releases/download/v${version}/LEVEL_${version}.deb`,
78+
link: `https://github.com/hiscoder-com/level-desktop/releases/download/v${version}/LEVEL_${version}-bible.deb`,
7879
},
7980
{
8081
label: 'Linux AppImage',
81-
link: `https://github.com/hiscoder-com/level-desktop/releases/download/v${version}/LEVEL_${version}.AppImage`,
82+
link: `https://github.com/hiscoder-com/level-desktop/releases/download/v${version}/LEVEL_${version}-bible.AppImage`,
8283
},
8384
]
8485
const isAvailableCurrentOs = availableOs.includes(os.os)
@@ -99,9 +100,17 @@ function Download({ t, onClose }) {
99100
</ol>
100101
<p>{t('Download.p2')}</p>
101102
{isAvailableCurrentOs ? (
102-
<Link href={getDownloadLink()} className="font-bold text-th-primary-100">
103-
{t('Download.link')}
104-
</Link>
103+
<>
104+
<Link href={getDownloadLink('obs')} className="font-bold text-th-primary-100">
105+
{t('Download.linkObs')}
106+
</Link>
107+
<Link
108+
href={getDownloadLink('bible')}
109+
className="font-bold text-th-primary-100"
110+
>
111+
{t('Download.linkBible')}
112+
</Link>
113+
</>
105114
) : (
106115
allLinks.map((download) => (
107116
<Link

public/locales/en/start-page.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"li2": "Run the file and follow the installation prompts.",
1212
"li3": "Once installed, open the program to explore the test project and familiarize yourself with the platform.",
1313
"p2": "We hope you enjoy using LEVEL! Stay tuned for updates and future releases for other operating systems.",
14-
"link": "Download LEVEL Desktop"
14+
"linkObs": "Download LEVEL Desktop with OBS project",
15+
"linkBible": "Download LEVEL Desktop with Bible project"
1516
},
1617
"Iagree": "I agree",
1718
"Idecline": "I decline",
@@ -92,4 +93,4 @@
9293
"text": "And this gospel of the kingdom will be preached in the whole world for a testimony to all the nations, and then the end will come."
9394
},
9495
"YourMessageHasBeenSent": "Your message has been sent"
95-
}
96+
}

0 commit comments

Comments
 (0)