mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-25 14:41:16 +01:00
extract current version changelog information
This commit is contained in:
parent
3c5bf376b5
commit
997e23150e
@ -47,8 +47,13 @@ export async function checkForUpdate() {
|
|||||||
largestVer = verObj
|
largestVer = verObj
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (verObj.version == currVerObj.version) {
|
||||||
|
currVerObj.changelog = release.body
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
if (!largestVer) {
|
if (!largestVer) {
|
||||||
console.error('No valid version tags to compare with')
|
console.error('No valid version tags to compare with')
|
||||||
@ -59,6 +64,7 @@ export async function checkForUpdate() {
|
|||||||
hasUpdate: largestVer.total > currVerObj.total,
|
hasUpdate: largestVer.total > currVerObj.total,
|
||||||
latestVersion: largestVer.version,
|
latestVersion: largestVer.version,
|
||||||
githubTagUrl: `https://github.com/advplyr/audiobookshelf/releases/tag/v${largestVer.version}`,
|
githubTagUrl: `https://github.com/advplyr/audiobookshelf/releases/tag/v${largestVer.version}`,
|
||||||
currentVersion: currVerObj.version
|
currentVersion: currVerObj.version,
|
||||||
|
currentVersionChangelog: currVerObj.changelog
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user