forked from omacom/aether
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 1.03 KB
/
Copy pathMakefile
File metadata and controls
31 lines (25 loc) · 1.03 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
.PHONY: build dev test clean install
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
endif
dev:
wails dev $(WEBKIT_TAGS)
test:
go test ./internal/... ./cli/...
clean:
rm -rf build/bin