From 605dd4aed6982c0a71e626666c036d7d7ed22df9 Mon Sep 17 00:00:00 2001 From: Realer Mason Date: Sat, 12 Sep 2026 15:34:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8D=20Linux=20AppImag?= =?UTF-8?q?e=20linuxdeploy=20=E5=AF=BC=E8=87=B4=E7=9A=84=20release=20?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit linuxdeploy 自带 strip 无法处理 ELF RELR,且 Tauri 默认日志级别会丢掉 stderr。Release 工作流在 Linux 打包时设置 NO_STRIP 与 APPIMAGE_EXTRACT_AND_RUN,并打开 verbose,避免 AppImage 打包静默失败。 --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b84abc3..6957d5e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -250,7 +250,13 @@ jobs: - name: Build Linux AppImage and deb installers if: runner.os == 'Linux' - run: pnpm tauri:build --target ${{ matrix.target }} --bundles appimage,deb + env: + # linuxdeploy's bundled strip cannot handle ELF RELR (.relr.dyn). + # APPIMAGE_EXTRACT_AND_RUN lets plugin AppImages run without FUSE. + # -v prints linuxdeploy stderr; Tauri swallows it at default log level. + NO_STRIP: 'true' + APPIMAGE_EXTRACT_AND_RUN: '1' + run: pnpm tauri:build --target ${{ matrix.target }} --bundles appimage,deb -v - name: Smoke-test the built native application shell if: runner.os == 'Windows'