feat(packaging): bundle app icon + Linux desktop entry; wire into AUR package
- release tarballs now ship podtui.png (assets/App Icon/App Icon.png, 512px) on every platform; Linux tarballs additionally carry podtui.desktop (Terminal=true so launchers open the TUI in a terminal) - AUR PKGBUILD installs both: icon to hicolor 512x512, entry to applications/ - build.ts bundles the icon/desktop into dist before tarballing
This commit is contained in:
15
build.ts
15
build.ts
@@ -116,6 +116,21 @@ if (COMPILE) {
|
||||
const s = join("dist", lib);
|
||||
if (existsSync(s)) copyFileSync(s, join(tarRoot, lib));
|
||||
}
|
||||
|
||||
// App icon: bundled into every platform tarball; Linux also gets the
|
||||
// desktop entry so the AUR package can install both system-wide
|
||||
// (icon to hicolor, entry to applications/).
|
||||
const iconSrc = join("assets", "App Icon", "App Icon.png");
|
||||
if (existsSync(iconSrc)) {
|
||||
copyFileSync(iconSrc, join(tarRoot, "podtui.png"));
|
||||
}
|
||||
if (platform === "linux") {
|
||||
const desktopSrc = join("packaging", "podtui.desktop");
|
||||
if (existsSync(desktopSrc)) {
|
||||
copyFileSync(desktopSrc, join(tarRoot, "podtui.desktop"));
|
||||
}
|
||||
}
|
||||
|
||||
const tar = Bun.spawnSync([
|
||||
"tar",
|
||||
"-czf",
|
||||
|
||||
Reference in New Issue
Block a user