-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (36 loc) · 965 Bytes
/
Makefile
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
CUSTOM_APPS_DIR = %appdata%\spicetify\CustomApps
EXTENSIONS_DIR = %appdata%\spicetify\Extensions
# Syncify Extension
EXT_DIR = SyncifyExt
EXT_NAME = syncify.js
# Syncify Custom App
APP_DIR = SyncifyApp
APP_NAME = syncify
# Apply Changes
apply:
@spicetify apply
# Installing Ext/App
install:
make install-app
make install-ext
install-ext:
make clean-ext
copy "$(EXT_DIR)\$(EXT_NAME)" "$(EXTENSIONS_DIR)"
@spicetify config extensions $(EXT_NAME)
install-app:
make clean-app
xcopy "$(APP_DIR)" "$(CUSTOM_APPS_DIR)\$(APP_NAME)" /E /I /Y || (echo "Failed to copy directory." && exit /b 1)
@spicetify config custom_apps $(APP_NAME)
# Disabling Syncify Ext/App
uninstall-ext:
@spicetify config extensions $(EXT_NAME)-
uninstall-app:
@spicetify config custom_apps $(APP_NAME)-
# Cleaning
clean-ext:
del "$(EXTENSIONS_DIR)\$(EXT_NAME)"
clean-app:
rmdir /S /Q "$(CUSTOM_APPS_DIR)\$(APP_NAME)" || (exit /b 0)
clean:
make clean-ext
make clean-app