@@ -5,12 +5,13 @@ export async function shellExec(
55 command : string ,
66 timeout : number = 300000 ,
77 env ?: Record < string , string > ,
8- showOutput : boolean = false ,
98) {
109 try {
1110 const { exitCode } = await execa ( command , {
1211 cwd : npmDirectory ,
13- stdio : showOutput ? 'inherit' : [ 'inherit' , 'pipe' , 'inherit' ] ,
12+ // Use 'inherit' to show all output directly to user in real-time.
13+ // This ensures linuxdeploy and other tool outputs are visible during builds.
14+ stdio : 'inherit' ,
1415 shell : true ,
1516 timeout,
1617 env : env ? { ...process . env , ...env } : process . env ,
@@ -28,17 +29,27 @@ export async function shellExec(
2829
2930 let errorMsg = `Error occurred while executing command "${ command } ". Exit code: ${ exitCode } . Details: ${ errorMessage } ` ;
3031
32+ // Provide helpful guidance for common Linux AppImage build failures
33+ // caused by strip tool incompatibility with modern glibc (2.38+)
3134 if (
3235 process . platform === 'linux' &&
3336 ( errorMessage . includes ( 'linuxdeploy' ) ||
3437 errorMessage . includes ( 'appimage' ) ||
3538 errorMessage . includes ( 'strip' ) )
3639 ) {
3740 errorMsg +=
38- '\n\nLinux AppImage build error. Try one of these solutions:\n' +
39- ' 1. Run with: NO_STRIP=true pake <url> --targets appimage\n' +
40- ' 2. Use DEB format instead: pake <url> --targets deb\n' +
41- ' 3. See detailed solutions: https://github.com/tw93/Pake/blob/main/docs/faq.md' ;
41+ '\n\nโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ\n' +
42+ 'Linux AppImage Build Failed\n' +
43+ 'โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ\n\n' +
44+ 'Cause: Strip tool incompatibility with glibc 2.38+\n' +
45+ ' (affects Debian Trixie, Arch Linux, and other modern distros)\n\n' +
46+ 'Quick fix:\n' +
47+ ' NO_STRIP=1 pake <url> --targets appimage --debug\n\n' +
48+ 'Alternatives:\n' +
49+ ' โข Use DEB format: pake <url> --targets deb\n' +
50+ ' โข Update binutils: sudo apt install binutils (or pacman -S binutils)\n' +
51+ ' โข Detailed guide: https://github.com/tw93/Pake/blob/main/docs/faq.md\n' +
52+ 'โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ' ;
4253 }
4354
4455 throw new Error ( errorMsg ) ;
0 commit comments