From e73a380f38cb9fe4dc3da963ea3ca1b68f60e3b3 Mon Sep 17 00:00:00 2001 From: sudacode Date: Wed, 18 Feb 2026 23:27:28 -0800 Subject: [PATCH] build: switch Makefile texthooker-ui steps to bun --- Makefile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 20c3d58..dd4467b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: help deps build build-launcher install build-linux build-macos build-macos-unsigned clean install-linux install-macos install-plugin uninstall uninstall-linux uninstall-macos print-dirs pretty ensure-bun ensure-pnpm generate-config generate-example-config docs-dev docs docs-preview dev-start dev-start-macos dev-toggle dev-stop +.PHONY: help deps build build-launcher install build-linux build-macos build-macos-unsigned clean install-linux install-macos install-plugin uninstall uninstall-linux uninstall-macos print-dirs pretty ensure-bun generate-config generate-example-config docs-dev docs docs-preview dev-start dev-start-macos dev-toggle dev-stop APP_NAME := subminer THEME_FILE := subminer.rasi @@ -91,16 +91,12 @@ print-dirs: deps: @$(MAKE) --no-print-directory ensure-bun - @$(MAKE) --no-print-directory ensure-pnpm @bun install - @cd vendor/texthooker-ui && pnpm install --frozen-lockfile + @cd vendor/texthooker-ui && bun install --frozen-lockfile ensure-bun: @command -v bun >/dev/null 2>&1 || { printf '%s\n' "[ERROR] bun not found"; exit 1; } -ensure-pnpm: - @command -v pnpm >/dev/null 2>&1 || { printf '%s\n' "[ERROR] pnpm not found"; exit 1; } - pretty: ensure-bun @bun run format @@ -122,17 +118,17 @@ install: build-linux: deps @printf '%s\n' "[INFO] Building Linux package (AppImage)" - @cd vendor/texthooker-ui && pnpm run build + @cd vendor/texthooker-ui && bun run build @bun run build:appimage build-macos: deps @printf '%s\n' "[INFO] Building macOS package (DMG + ZIP)" - @cd vendor/texthooker-ui && pnpm run build + @cd vendor/texthooker-ui && bun run build @bun run build:mac build-macos-unsigned: deps @printf '%s\n' "[INFO] Building macOS package (DMG + ZIP, unsigned)" - @cd vendor/texthooker-ui && pnpm run build + @cd vendor/texthooker-ui && bun run build @bun run build:mac:unsigned build-launcher: