File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ document.addEventListener('DOMContentLoaded', function () {
3
3
// rather than looking for it all the time, you could just create an enum and change this once than updating every line
4
4
const github = {
5
5
repo : 'https://github.com/lapce/lapce' ,
6
- version : 'v0.2.7' ,
7
6
windows : 'Lapce-windows.msi' ,
8
7
linux : 'Lapce-linux.tar.gz' ,
9
8
macos : 'Lapce-macos.dmg'
@@ -72,15 +71,15 @@ document.addEventListener('DOMContentLoaded', function () {
72
71
switch ( OSName ) {
73
72
case "win" :
74
73
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 } ` )
76
75
break ;
77
76
case "mac" :
78
77
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 } ` )
80
79
break ;
81
80
case "linux" :
82
81
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 } ` )
84
83
break ;
85
84
}
86
- } ) ;
85
+ } ) ;
You can’t perform that action at this time.
0 commit comments