-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 1.4 KB
/
Makefile
File metadata and controls
36 lines (26 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Variables
APP_NAME=ssh_manager
BINARY_NAME=ssh_manager
LINUX_DEPS=clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev xdotool
.PHONY: all help deps clean run build-macos build-linux fix-entitlements
all: help
help: ## Show this help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
install-ubuntu:
bash bin/install-flutter.sh
fix-entitlements: ## Fix macOS Sandbox entitlements (Disable Sandbox)
@echo "Disabling macOS Sandbox in entitlements files..."
@sed -i '' 's/<key>com.apple.security.app-sandbox<\/key>.*<true\/>/<key>com.apple.security.app-sandbox<\/key>\n <false\/>/g' macos/Runner/Debug.entitlements 2>/dev/null || true
@sed -i '' 's/<key>com.apple.security.app-sandbox<\/key>.*<true\/>/<key>com.apple.security.app-sandbox<\/key>\n <false\/>/g' macos/Runner/Release.entitlements 2>/dev/null || true
@echo "Done. Sandbox disabled for AppleScript support."
clean: ## Clean flutter build artifacts
flutter clean
flutter pub get
run: ## Run the app in debug mode
flutter run
build-macos: fix-entitlements ## Build the macOS Desktop app
flutter build macos
build-linux: ## Build the Linux Desktop app
flutter build linux
install-linux: build-linux ## Install the Linux binary to /usr/local/bin (Example)
sudo cp build/linux/x64/release/bundle/$(BINARY_NAME) /usr/local/bin/