This repository was archived by the owner on May 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export default class Download extends Component {
3939 </ li >
4040 }
4141 {
42- this . state . downloadURLs . squirrel !== '' &&
42+ this . state . downloadURLs . zip_linux !== '' &&
4343 < li >
4444 < a target = "_blank" rel = "noreferrer" href = { this . state . downloadURLs . zip_linux } className = "btn-flat brand-gradient gradient-text" >
4545 < i className = "fa fa-linux" />
@@ -80,15 +80,15 @@ export default class Download extends Component {
8080 const releaseInfo = JSON . parse ( xmlHttp . responseText ) ;
8181
8282 const debAsset = releaseInfo . assets . find ( ( asset ) => asset . name . includes ( '.deb' ) ) ;
83- const zipLinuxAsset = releaseInfo . assets . find ( ( asset ) => asset . name . includes ( '.zip' ) ) ;
83+ const zipLinuxAsset = releaseInfo . assets . find ( ( asset ) => asset . name . includes ( '.zip' ) && asset . name . includes ( 'linux' ) ) ;
8484 const squirrelAsset = releaseInfo . assets . find ( ( asset ) => asset . name . includes ( '.exe' ) ) ;
8585
8686 this . setState ( {
8787 latestVersion : releaseInfo . tag_name ,
8888 downloadURLs : {
89- deb : debAsset ? debAsset . url : '' ,
90- zip_linux : zipLinuxAsset ? zipLinuxAsset . url : '' ,
91- squirrel : squirrelAsset ? squirrelAsset . url : '' ,
89+ deb : debAsset ? debAsset . browser_download_url : '' ,
90+ zip_linux : zipLinuxAsset ? zipLinuxAsset . browser_download_url : '' ,
91+ squirrel : squirrelAsset ? squirrelAsset . browser_download_url : '' ,
9292 }
9393 } )
9494 }
You can’t perform that action at this time.
0 commit comments