Skip to content

Commit 512bc3e

Browse files
authored
Merge pull request #72 from panekj/patch-3
feat: point to latest release
2 parents 530805f + 4a220ed commit 512bc3e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

assets/js/main.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ document.addEventListener('DOMContentLoaded', function () {
33
// rather than looking for it all the time, you could just create an enum and change this once than updating every line
44
const github = {
55
repo: 'https://github.com/lapce/lapce',
6-
version: 'v0.2.7',
76
windows: 'Lapce-windows.msi',
87
linux: 'Lapce-linux.tar.gz',
98
macos: 'Lapce-macos.dmg'
@@ -72,15 +71,15 @@ document.addEventListener('DOMContentLoaded', function () {
7271
switch (OSName) {
7372
case "win":
7473
download.innerText = "Download for Windows";
75-
download.setAttribute("href", `${github.repo}/releases/download/${github.version}/${github.windows}`)
74+
download.setAttribute("href", `${github.repo}/releases/latest/download/${github.windows}`)
7675
break;
7776
case "mac":
7877
download.innerText = "Download for macOS";
79-
download.setAttribute("href", `${github.repo}/releases/download/${github.version}/${github.macos}`)
78+
download.setAttribute("href", `${github.repo}/releases/latest/download/${github.macos}`)
8079
break;
8180
case "linux":
8281
download.innerText = "Download for Linux";
83-
download.setAttribute("href", `${github.repo}/releases/download/${github.version}/${github.linux}`)
82+
download.setAttribute("href", `${github.repo}/releases/latest/download/${github.linux}`)
8483
break;
8584
}
86-
});
85+
});

0 commit comments

Comments
 (0)