forked from nortmas/chrome-bookmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
45 lines (37 loc) · 1.15 KB
/
Justfile
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
export DEV_IMAGE := "ulauncher/build-image:5.0"
export EXTENSION_PATH := env_var("HOME") + "/.local/share/ulauncher/extensions/com.github.blurayne.ulauncher-browserbookmarks"
dev-shell:
@just docker-run /bin/bash -i
docker-run +CMD:
docker run -it --rm \
-v $PWD:/workspace \
-v $HOME/.config:$HOME/.config:ro \
-e "HOME=$HOME" \
-u $(id -u):$(id -g) \
-w /workspace \
{{DEV_IMAGE}} \
{{CMD}}
prepare-dev: prepare-dev-symlink-project
prepare-dev-symlink-project:
#!/bin/bash
if [[ ! -s "$EXTENSION_PATH" ]]; then
ln -s "$PWD" "$EXTENSION_PATH"
fi
run-dev: run-dev-ulauncher run-dev-extension
kill-non-dev-ulauncher:
#!/bin/bash
for line in "$(ps -ax -o pid:1,cmd:100 | grep 'ulauncher' | grep -v "\--dev " | grep -E '/[^ ]+/ulauncher' || true)"; do
if [[ -z "$line" ]]; thenBruna Baz
continue;
fi
echo "killing $line"
kill "${line// *}"
done
run-dev-ulauncher: kill-non-dev-ulauncher
ulauncher --no-extensions --dev -v
run-dev-extension:
#!/bin/bash
export VERBOSE=1
export ULAUNCHER_WS_API=ws://127.0.0.1:5054/com.github.blurayne.ulauncher-browserbookmarks
# export PYTHONPATH=/usr/lib/python3/dist-packages
python3 main.py