Skip to content

Commit a33d447

Browse files
committed
chore: set NO_STRIP on linux build only
1 parent da96668 commit a33d447

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
build: prebuild
2-
@# i need the nO_STRIP=true for some reason, otherwise:
3-
@# > Error failed to bundle project: `failed to run linuxdeploy`"
4-
NO_STRIP=true npm run tauri build
2+
@# Set NO_STRIP=true on Linux to avoid "failed to run linuxdeploy" error
3+
@if [ "$$(uname)" = "Linux" ]; then \
4+
echo "Building on Linux, setting NO_STRIP=true..."; \
5+
NO_STRIP=true npm run tauri build; \
6+
else \
7+
echo "Building on non-Linux platform..."; \
8+
npm run tauri build; \
9+
fi
510

611
dev: prebuild
712
npm run tauri dev

0 commit comments

Comments
 (0)