diff --git a/packages/main/src/InternetService.ts b/packages/main/src/InternetService.ts index 875f128..9d0bcf6 100644 --- a/packages/main/src/InternetService.ts +++ b/packages/main/src/InternetService.ts @@ -111,7 +111,7 @@ export const InternetService = { null, { host: 'api.github.com', - path: '/repos/nfdi4plants/ARCitect/tags', + path: '/repos/nfdi4plants/ARCitect/releases', method: 'GET' } ); diff --git a/packages/renderer/src/App.vue b/packages/renderer/src/App.vue index 6e67ea5..7032f36 100644 --- a/packages/renderer/src/App.vue +++ b/packages/renderer/src/App.vue @@ -147,9 +147,11 @@ onMounted(async () => { } console.log(git_lfs_running[1]); + const version_ = iProps.version.slice(1).split('.').map(x=>parseFloat(x)); const versions = await window.ipc.invoke('InternetService.getArcitectVersions'); - const latest_version = versions[0].name; - if(latest_version !== iProps.version) + const latest_version = versions[0].tag_name; + const latest_version_ = latest_version.slice(1).split('.').map(x=>parseFloat(x)); + if(version_[0]