Skip to content

Commit 39e8d3b

Browse files
authored
fix: update linux build script to be consistent with CI (#6269)
The local build script for Linux was failing due to a bundling error. This commit updates the `build:tauri:linux` script in `package.json` to be consistent with the CI build pipeline, which resolves the issue. The updated script now includes: - **`NO_STRIP=1`**: This environment variable prevents the `linuxdeploy` utility from stripping debugging symbols, which was a potential cause of the bundling failure. - **`--verbose`**: This flag provides more detailed output during the build, which can be useful for debugging similar issues in the future.
1 parent 64a6080 commit 39e8d3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"download:lib": "node ./scripts/download-lib.mjs",
2323
"download:bin": "node ./scripts/download-bin.mjs",
2424
"build:tauri:win32": "yarn download:bin && yarn tauri build",
25-
"build:tauri:linux": "yarn download:bin && ./src-tauri/build-utils/shim-linuxdeploy.sh yarn tauri build && ./src-tauri/build-utils/buildAppImage.sh",
25+
"build:tauri:linux": "yarn download:bin && NO_STRIP=1 ./src-tauri/build-utils/shim-linuxdeploy.sh yarn tauri build --verbose && ./src-tauri/build-utils/buildAppImage.sh",
2626
"build:tauri:darwin": "yarn tauri build --target universal-apple-darwin",
2727
"build:tauri": "yarn build:icon && yarn copy:assets:tauri && run-script-os",
2828
"build:tauri:plugin:api": "cd src-tauri/plugins && yarn install && yarn workspaces foreach -Apt run build",

0 commit comments

Comments
 (0)