-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (45 loc) · 1.2 KB
/
Copy pathMakefile
File metadata and controls
56 lines (45 loc) · 1.2 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
45
46
47
48
49
50
51
52
53
54
55
56
BIN ?= hv
ENTITLEMENTS ?= hypervisor.entitlements
CODESIGN_ID ?= -
default: dev
.PHONY: bump
bump:
@echo "🚀 Bumping Version"
git tag $(shell svu patch)
git push --tags
.PHONY: build
build:
@echo "🚀 Building Version $(shell svu current)"
cd cmd/hv && go build -o ../../$(BIN) .
.PHONY: sign
sign: build
@echo "🔐 Codesigning $(BIN) with $(ENTITLEMENTS)"
codesign --sign $(CODESIGN_ID) --force --entitlements=$(ENTITLEMENTS) $(BIN)
.PHONY: verify
verify: $(BIN)
@echo "🔍 Verifying entitlements for $(BIN)"
codesign -dv --entitlements - $(BIN) 2>&1 | sed -n '1,120p'
.PHONY: dev
dev: build sign verify
@echo "✅ Dev build ready: $(BIN)"
.PHONY: test
test:
@echo "🧪 Running integration tests"
@hack/make/test_integration
.PHONY: clean
clean:
@echo "🧹 Cleaning up"
rm -f $(BIN)
.PHONY: release
release:
@echo "🚀 Releasing Version $(shell svu current)"
goreleaser build --id default --clean --snapshot --single-target --output dist/hv
.PHONY: snapshot
snapshot:
@echo "🚀 Snapshot Version $(shell svu current)"
goreleaser --clean --timeout 60m --snapshot
.PHONY: vhs
vhs: release
@echo "📼 VHS Recording"
@echo "Please ensure you have the 'vhs' command installed."
vhs < vhs.tape