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 <noreply@anthropic.com>
This commit is contained in:
40
Makefile
40
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)
|
||||
|
||||
Reference in New Issue
Block a user