Skip to content

Commit

Permalink
draft releases excluded from verion test
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasLukasczyk committed Jul 17, 2024
1 parent 7bb70f7 commit 4a7d753
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/main/src/InternetService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const InternetService = {
null,
{
host: 'api.github.com',
path: '/repos/nfdi4plants/ARCitect/tags',
path: '/repos/nfdi4plants/ARCitect/releases',
method: 'GET'
}
);
Expand Down
6 changes: 4 additions & 2 deletions packages/renderer/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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]<latest_version_[0] || version_[1]<latest_version_[1] || version_[2]<latest_version_[2])
iProps.new_version = latest_version;
});
Expand Down

0 comments on commit 4a7d753

Please sign in to comment.