detached 2eb5513

chore(dev): install cef helper with local builds

commit
2eb55133ca3445527e6cdfc4ab95b6dec1a00083
author
brice · · 2026-04-19 05:17 UTC
committer
brice · · 2026-04-19 07:06 UTC
parent
e9ff832
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
1 file · +17 -2
M Makefile +17 -2
@@ -1,6 +1,6 @@
11 # Makefile for dumber (Clean Architecture - puregotk)
22
3-.PHONY: build build-frontend test lint clean install-tools dev generate help init man flatpak-deps flatpak-build flatpak-install flatpak-run flatpak-clean stress-omnibox-callbacks verify-purego check
3+.PHONY: build build-frontend build-quick install-local test lint clean install-tools dev generate help init man flatpak-deps flatpak-build flatpak-install flatpak-run flatpak-clean stress-omnibox-callbacks verify-purego check
44
55 # Load local overrides from .env.local if present (Makefile syntax)
66 ifneq (,$(wildcard .env.local))
@@ -12,6 +12,7 @@ endif
1212 BINARY_NAME=dumber
1313 MAIN_PATH=./cmd/dumber
1414 DIST_DIR=dist
15+LOCAL_BIN_DIR?=$(HOME)/.local/bin
1516
1617 # Detect number of CPU cores for parallel compilation
1718 NPROCS?=$(shell nproc 2>/dev/null || echo 1)
@@ -55,7 +56,21 @@ build-quick: ## Build without frontend (faster for backend development)
5556 @mkdir -p $(DIST_DIR)
5657 CGO_ENABLED=0 go build -p $(NPROCS) $(GCFLAGS) $(LDFLAGS) -o $(DIST_DIR)/$(BINARY_NAME) $(MAIN_PATH)
5758 CGO_ENABLED=0 go build -p $(NPROCS) -ldflags "-s -w" -o $(DIST_DIR)/cef-helper ./cmd/cef-helper
58- @echo "Build successful! Binary: $(DIST_DIR)/$(BINARY_NAME)"
59+ @echo "Build successful! Binaries: $(DIST_DIR)/$(BINARY_NAME) and $(DIST_DIR)/cef-helper"
60+
61+install-local: build-quick ## Install dumber + cef-helper to ~/.local/bin atomically
62+ @echo "Installing $(BINARY_NAME) and cef-helper to $(LOCAL_BIN_DIR)..."
63+ @mkdir -p $(LOCAL_BIN_DIR)
64+ @tmp_dumber="$$(mktemp '$(LOCAL_BIN_DIR)/.dumber.tmp.XXXXXX')"; \
65+ tmp_helper="$$(mktemp '$(LOCAL_BIN_DIR)/.cef-helper.tmp.XXXXXX')"; \
66+ trap 'rm -f "$$tmp_dumber" "$$tmp_helper"' EXIT INT TERM; \
67+ install -m 0755 $(DIST_DIR)/$(BINARY_NAME) "$$tmp_dumber"; \
68+ install -m 0755 $(DIST_DIR)/cef-helper "$$tmp_helper"; \
69+ mv -f "$$tmp_dumber" $(LOCAL_BIN_DIR)/$(BINARY_NAME); \
70+ mv -f "$$tmp_helper" $(LOCAL_BIN_DIR)/cef-helper; \
71+ trap - EXIT INT TERM; \
72+ echo "Installed: $(LOCAL_BIN_DIR)/$(BINARY_NAME)"; \
73+ echo "Installed: $(LOCAL_BIN_DIR)/cef-helper"
5974
6075 # Development targets
6176 dev: ## Run in development mode
@@ -1,6 +1,6 @@
1 # Makefile for dumber (Clean Architecture - puregotk)1 # Makefile for dumber (Clean Architecture - puregotk)
2 2
3-.PHONY: build build-frontend test lint clean install-tools dev generate help init man flatpak-deps flatpak-build flatpak-install flatpak-run flatpak-clean stress-omnibox-callbacks verify-purego check3+.PHONY: build build-frontend build-quick install-local test lint clean install-tools dev generate help init man flatpak-deps flatpak-build flatpak-install flatpak-run flatpak-clean stress-omnibox-callbacks verify-purego check
4 4
5 # Load local overrides from .env.local if present (Makefile syntax)5 # Load local overrides from .env.local if present (Makefile syntax)
6 ifneq (,$(wildcard .env.local))6 ifneq (,$(wildcard .env.local))
@@ -12,6 +12,7 @@ endif
12 BINARY_NAME=dumber12 BINARY_NAME=dumber
13 MAIN_PATH=./cmd/dumber13 MAIN_PATH=./cmd/dumber
14 DIST_DIR=dist14 DIST_DIR=dist
15+LOCAL_BIN_DIR?=$(HOME)/.local/bin
15 16
16 # Detect number of CPU cores for parallel compilation17 # Detect number of CPU cores for parallel compilation
17 NPROCS?=$(shell nproc 2>/dev/null || echo 1)18 NPROCS?=$(shell nproc 2>/dev/null || echo 1)
@@ -55,7 +56,21 @@ build-quick: ## Build without frontend (faster for backend development)
55 @mkdir -p $(DIST_DIR)56 @mkdir -p $(DIST_DIR)
56 CGO_ENABLED=0 go build -p $(NPROCS) $(GCFLAGS) $(LDFLAGS) -o $(DIST_DIR)/$(BINARY_NAME) $(MAIN_PATH)57 CGO_ENABLED=0 go build -p $(NPROCS) $(GCFLAGS) $(LDFLAGS) -o $(DIST_DIR)/$(BINARY_NAME) $(MAIN_PATH)
57 CGO_ENABLED=0 go build -p $(NPROCS) -ldflags "-s -w" -o $(DIST_DIR)/cef-helper ./cmd/cef-helper58 CGO_ENABLED=0 go build -p $(NPROCS) -ldflags "-s -w" -o $(DIST_DIR)/cef-helper ./cmd/cef-helper
58- @echo "Build successful! Binary: $(DIST_DIR)/$(BINARY_NAME)"59+ @echo "Build successful! Binaries: $(DIST_DIR)/$(BINARY_NAME) and $(DIST_DIR)/cef-helper"
60+
61+install-local: build-quick ## Install dumber + cef-helper to ~/.local/bin atomically
62+ @echo "Installing $(BINARY_NAME) and cef-helper to $(LOCAL_BIN_DIR)..."
63+ @mkdir -p $(LOCAL_BIN_DIR)
64+ @tmp_dumber="$$(mktemp '$(LOCAL_BIN_DIR)/.dumber.tmp.XXXXXX')"; \
65+ tmp_helper="$$(mktemp '$(LOCAL_BIN_DIR)/.cef-helper.tmp.XXXXXX')"; \
66+ trap 'rm -f "$$tmp_dumber" "$$tmp_helper"' EXIT INT TERM; \
67+ install -m 0755 $(DIST_DIR)/$(BINARY_NAME) "$$tmp_dumber"; \
68+ install -m 0755 $(DIST_DIR)/cef-helper "$$tmp_helper"; \
69+ mv -f "$$tmp_dumber" $(LOCAL_BIN_DIR)/$(BINARY_NAME); \
70+ mv -f "$$tmp_helper" $(LOCAL_BIN_DIR)/cef-helper; \
71+ trap - EXIT INT TERM; \
72+ echo "Installed: $(LOCAL_BIN_DIR)/$(BINARY_NAME)"; \
73+ echo "Installed: $(LOCAL_BIN_DIR)/cef-helper"
59 74
60 # Development targets75 # Development targets
61 dev: ## Run in development mode76 dev: ## Run in development mode

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close