feat: Implemented AppImage building
This commit is contained in:
parent
d8f471dadc
commit
6a288f765e
38 changed files with 1036 additions and 147 deletions
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
import { $ } from 'bun';
|
||||
import path from 'node:path';
|
||||
|
||||
export function checkRunning (pid: number)
|
||||
{
|
||||
|
|
@ -39,6 +40,19 @@ export async function isSteamDeck ()
|
|||
}
|
||||
}
|
||||
|
||||
export function appPath (input: string): string
|
||||
{
|
||||
if (path.isAbsolute(input))
|
||||
{
|
||||
return input;
|
||||
}
|
||||
if (process.env.APPDIR)
|
||||
{
|
||||
return path.join(process.env.APPDIR ?? '', 'usr', 'share', input);
|
||||
}
|
||||
return input;
|
||||
}
|
||||
|
||||
export async function openExternal (target: string)
|
||||
{
|
||||
if (process.platform === "linux")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue