From 4b6c547bcff33a37529b7a0f519b26f447dffaca Mon Sep 17 00:00:00 2001 From: "A.Shakhmatov" Date: Thu, 12 Feb 2026 13:49:10 +0300 Subject: [PATCH] fix: use --no-bundle in build/install, split bundle targets - `make build` now uses --no-bundle so install doesn't fail on platform-specific bundlers (e.g. linuxdeploy for AppImage) - Separate `make bundle-*` targets for deb, rpm, appimage, macos, windows - `make bundle` still builds everything for the current platform Co-Authored-By: Claude Opus 4.6 --- Makefile | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 01de575..3fb782c 100644 --- a/Makefile +++ b/Makefile @@ -44,28 +44,40 @@ fmt-check: ## Check Rust formatting # ────────────────────────────────────────────── .PHONY: build -build: node_modules ## Build release binary + bundles for current platform - npm run tauri build $(TARGET_FLAG) +build: node_modules ## Build release binary (no bundling) + npm run tauri build -- --no-bundle $(TARGET_FLAG) .PHONY: build-debug build-debug: node_modules ## Build debug binary - npm run tauri build -- --debug $(TARGET_FLAG) + npm run tauri build -- --debug --no-bundle $(TARGET_FLAG) -.PHONY: build-linux -build-linux: node_modules ## Build for Linux (deb + AppImage + rpm) - npm run tauri build +.PHONY: bundle +bundle: node_modules ## Build release binary + platform bundles (deb, rpm, dmg, msi…) + npm run tauri build -- $(TARGET_FLAG) -.PHONY: build-macos -build-macos: node_modules ## Build for macOS (dmg + app bundle) — run on macOS - npm run tauri build +.PHONY: bundle-deb +bundle-deb: node_modules ## Build .deb package + npm run tauri build -- --bundles deb $(TARGET_FLAG) -.PHONY: build-macos-universal -build-macos-universal: node_modules ## Build universal macOS binary (x86_64 + aarch64) +.PHONY: bundle-rpm +bundle-rpm: node_modules ## Build .rpm package + npm run tauri build -- --bundles rpm $(TARGET_FLAG) + +.PHONY: bundle-appimage +bundle-appimage: node_modules ## Build AppImage + npm run tauri build -- --bundles appimage $(TARGET_FLAG) + +.PHONY: bundle-macos +bundle-macos: node_modules ## Build macOS dmg + app — run on macOS + npm run tauri build -- --bundles dmg $(TARGET_FLAG) + +.PHONY: bundle-macos-universal +bundle-macos-universal: node_modules ## Build universal macOS binary (x86_64 + aarch64) npm run tauri build -- --target universal-apple-darwin -.PHONY: build-windows -build-windows: node_modules ## Build for Windows (msi + nsis) — run on Windows - npm run tauri build +.PHONY: bundle-windows +bundle-windows: node_modules ## Build Windows msi + nsis — run on Windows + npm run tauri build -- --bundles msi,nsis $(TARGET_FLAG) # ────────────────────────────────────────────── # Install / Uninstall (Linux)