feat: added update notes and moved update to own tab
feat: added update info for emulators
This commit is contained in:
parent
813785f4f3
commit
cf84f40a17
14 changed files with 318 additions and 34 deletions
|
|
@ -20,9 +20,12 @@ import SelfUpdateJob from "./jobs/self-update-job";
|
|||
async function checkUpdate (force?: boolean)
|
||||
{
|
||||
const latest = await getOrCachedGithubRelease('simeonradivoev/gameflow-deck', force);
|
||||
if (!latest || !latest.tag_name) return { hasUpdate: 0, version: getAppVersion() };
|
||||
if (!latest || !latest.tag_name) return {
|
||||
hasUpdate: 0,
|
||||
version: getAppVersion()
|
||||
};
|
||||
const hasUpdate = semver.order(latest.tag_name, getAppVersion());
|
||||
return { hasUpdate, version: latest.tag_name };
|
||||
return { hasUpdate, version: latest.tag_name, info: latest.body };
|
||||
}
|
||||
|
||||
export const system = new Elysia({ prefix: '/api/system' })
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ async function shutdown (code: number)
|
|||
|
||||
process.on("SIGINT", () => shutdown(0));
|
||||
process.on("SIGTERM", () => shutdown(0));
|
||||
process.on('SIGUSR1', () => shutdown(3));
|
||||
|
||||
if (process.env.HEADLESS)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue