-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 754 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 754 Bytes
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
CONFIG_DIR = $(HOME)/.config/audiotier
.PHONY: build app dmg install uninstall run config clean
build:
swift build -c release
app: build
bash scripts/build-app.sh
dmg: app
bash scripts/build-dmg.sh
install: app config
cp -R "build/AudioTier.app" /Applications/
@echo "Installed to /Applications/AudioTier.app"
config:
mkdir -p $(CONFIG_DIR)
@if [ ! -f $(CONFIG_DIR)/config.json ]; then \
cp config.default.json $(CONFIG_DIR)/config.json; \
echo "Created config at $(CONFIG_DIR)/config.json"; \
else \
echo "Config already exists at $(CONFIG_DIR)/config.json"; \
fi
uninstall:
-osascript -e 'quit app "AudioTier"' 2>/dev/null
-rm -rf "/Applications/AudioTier.app"
@echo "Uninstalled"
run:
swift run
clean:
rm -rf build .build