-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 1.34 KB
/
Copy pathMakefile
File metadata and controls
36 lines (29 loc) · 1.34 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
.PHONY: build dev test clean install install-omarchy-plugins
WEBKIT_TAGS := $(shell pkg-config --exists webkit2gtk-4.0 2>/dev/null || echo "-tags webkit2_41")
build:
wails build $(WEBKIT_TAGS)
install: build
ifeq ($(shell uname -s),Darwin)
cp build/bin/aether.app /Applications/Aether.app 2>/dev/null || \
cp build/bin/aether /usr/local/bin/aether
else
sudo cp build/bin/aether /usr/bin/aether
mkdir -p $(HOME)/.local/share/applications
cp li.oever.aether.desktop $(HOME)/.local/share/applications/
cp li.oever.aether.url-handler.desktop $(HOME)/.local/share/applications/
mkdir -p $(HOME)/.local/share/icons/hicolor/512x512/apps
cp assets/aether-icon-512.png $(HOME)/.local/share/icons/hicolor/512x512/apps/aether.png
-update-desktop-database $(HOME)/.local/share/applications 2>/dev/null
-gtk-update-icon-cache -f $(HOME)/.local/share/icons/hicolor 2>/dev/null
-xdg-mime default li.oever.aether.url-handler.desktop x-scheme-handler/aether 2>/dev/null
@if command -v omarchy >/dev/null 2>&1; then $(MAKE) install-omarchy-plugins; fi
endif
install-omarchy-plugins:
AETHER_PLUGIN_SOURCE_DIR="$(CURDIR)/contrib/quickshell" contrib/quickshell/install.sh
dev:
wails dev $(WEBKIT_TAGS)
test:
go test ./internal/... ./cli/...
go test -ldflags "-X aether/internal/update.packageUpdateCommand=omarchy-update" ./internal/update ./cli
clean:
rm -rf build/bin