build: Added 7zip to work with appimage

This commit is contained in:
Simeon Radivoev 2026-03-30 21:01:23 +03:00
parent b4e9112989
commit 58d3c31c56
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
2 changed files with 6 additions and 7 deletions

View file

@ -26,8 +26,8 @@ if (process.env.TARGET)
compileOption.target = process.env.TARGET as any;
}
let zip: string | undefined;
let zipPath: string = '';
let zipNodePath: string | undefined;
let webviewLib: string | undefined;
switch (process.platform)
@ -53,7 +53,10 @@ if (!webviewLib) throw new Error("Could not find webviewlib");
let webviewLibPath = '.';
if (process.env.APPIMAGE === "true")
{
webviewLibPath = `./usr/lib`;
zipPath = './usr/bin';
}
await Bun.build({
entrypoints: ["./src/bun/index.ts", `./src/bun/webview/${system.platform}.ts`],