-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
31 lines (25 loc) · 1.05 KB
/
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
EXT_PKG=keepassxc
EXT_DIR=com.github.pbkhrv.ulauncher-keepassxc
EXT_BACKUP_PATH=/tmp/ulauncher-dev-extension-backups
init:
pip3 install -r scripts/requirements.txt
test:
pylint main.py ${EXT_PKG}/
mypy main.py
eval "PYTHONPATH=`pwd` py.test -v --doctest-modules --flake8 main.py tests/ ${EXT_PKG}/"
run_ul:
ulauncher --no-extensions --dev -v
run:
VERBOSE=1 ULAUNCHER_WS_API=ws://127.0.0.1:5054/${EXT_DIR} PYTHONPATH=/usr/lib/python3/dist-packages /usr/bin/python3 `pwd`/main.py
symlink:
# Backup whatever extension is installed now
# (if currently installed extension is a symlink, it'll clobber previous backup!)
mkdir -p ${EXT_BACKUP_PATH}
rm -rf ${EXT_BACKUP_PATH}/${EXT_DIR}
cp -r ~/.local/share/ulauncher/extensions/${EXT_DIR} ${EXT_BACKUP_PATH}
# symlink dev version into ulauncher extensions dir
rm -rf ~/.local/share/ulauncher/extensions/${EXT_DIR}
ln -s `pwd` ~/.local/share/ulauncher/extensions/${EXT_DIR}
unlink:
rm -rf ~/.local/share/ulauncher/extensions/${EXT_DIR}
cp -r ${EXT_BACKUP_PATH}/${EXT_DIR} ~/.local/share/ulauncher/extensions