-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (36 loc) · 1.24 KB
/
Makefile
File metadata and controls
44 lines (36 loc) · 1.24 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
37
38
39
40
41
42
43
44
# Makefile for SkillUI Wails Application
.PHONY: help dev build clean install check-deps
# Default target
help:
@echo "Available targets:"
@echo " dev - Start the development server"
@echo " build - Build the application"
@echo " clean - Clean build artifacts"
@echo " install - Install dependencies"
@echo " check-deps - Check if required tools are installed"
# Check if required tools are installed
check-deps:
@command -v go >/dev/null 2>&1 || { echo "Go is not installed. Please install Go."; exit 1; }
@command -v wails >/dev/null 2>&1 || { echo "Wails is not installed. Please install Wails: go install github.com/wailsapp/wails/v2/cmd/wails@latest"; exit 1; }
@command -v npm >/dev/null 2>&1 || { echo "npm is not installed. Please install Node.js and npm."; exit 1; }
# Install dependencies
install: check-deps
cd frontend && npm install
go mod tidy
# Start development server
dev: check-deps
wails dev
# Build the application
build: check-deps
wails build
# Clean build artifacts
clean:
rm -rf build/bin
rm -rf frontend/dist
rm -rf frontend/node_modules
go clean
build_and_install:
$(MAKE) install
$(MAKE) build
sudo rm -rfv /Applications/SkillUI.app
sudo cp -rv build/bin/SkillUI.app /Applications/SkillUI.app