|
Restore the .pacman-based asset extraction in package() but with the
correct ebname. The previous code used '@opencode-aidesktop' which never
matched what electron-builder produced for the prod channel; eb derives
the .desktop / icon basename from extraMetadata.desktopName (config sets
appId+'.desktop' for prod, giving basename 'ai.opencode.desktop').
To make the build reliably yield a .pacman archive regardless of the
'bun run package -- --linux pacman' CLI flag handling across eb versions,
also patch upstream's electron-builder.config.ts to add 'pacman' to the
linux target list (built-in eb target, no extra dependency).
|