-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
26 lines (22 loc) · 723 Bytes
/
Taskfile.yml
File metadata and controls
26 lines (22 loc) · 723 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
version: "3"
vars:
PLUGIN_NAME: switch-sound
PLUGIN_DIR: "{{.HOME}}/.local/share/albert/python/plugins/{{.PLUGIN_NAME}}"
tasks:
install:
desc: Install the plugin (symlink to Albert plugins directory)
cmds:
- mkdir -p {{.HOME}}/.local/share/albert/python/plugins
- ln -sfn {{.ROOT_DIR}} {{.PLUGIN_DIR}}
- echo "Installed {{.PLUGIN_NAME}} → {{.PLUGIN_DIR}}"
- echo "Restart Albert and enable the plugin in Settings → Plugins → Python"
uninstall:
desc: Uninstall the plugin
cmds:
- rm -f {{.PLUGIN_DIR}}
- echo "Uninstalled {{.PLUGIN_NAME}}"
update:
desc: Update the plugin from git
cmds:
- git pull
- echo "Updated {{.PLUGIN_NAME}}"