feat: Implemented AppImage building
This commit is contained in:
parent
d8f471dadc
commit
6a288f765e
38 changed files with 1036 additions and 147 deletions
|
|
@ -34,6 +34,12 @@ export const system = new Elysia({ prefix: '/api/system' })
|
|||
})
|
||||
.get('/info', async () =>
|
||||
{
|
||||
let source = 'unknown';
|
||||
if (process.env.APPIMAGE === 'true')
|
||||
source = "AppImage";
|
||||
if (process.env.FLATPAK === 'true')
|
||||
source = "Flatpak";
|
||||
|
||||
return {
|
||||
homeDir: os.homedir(),
|
||||
user: os.userInfo().username,
|
||||
|
|
@ -42,6 +48,7 @@ export const system = new Elysia({ prefix: '/api/system' })
|
|||
hostname: os.hostname(),
|
||||
steamDeck: process.env.SteamDeck,
|
||||
machine: os.machine(),
|
||||
source
|
||||
};
|
||||
})
|
||||
.get('/notifications', ({ set }) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue