From 8bd917384761a31aeedef59800db3c448fdf23b8 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Sun, 15 Oct 2023 16:07:10 +0100 Subject: [PATCH] update makefile to install python packages, apply executable perms to script after install --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 148a0ac..f35bc3f 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ install: cp n2w_add_uuid.py /usr/local/bin sed "s/N2W_COMMIT = \"\"/N2W_COMMIT = \"$$(git rev-parse --short HEAD)\"/" notes2web.py > /usr/local/bin/notes2web.py - pip3 install -r requirements.txt + pip3 install -r requirements.txt --break-system-packages mkdir -p /opt/notes2web cp -r templates /opt/notes2web cp styles.css /opt/notes2web @@ -10,6 +10,7 @@ install: cp indexsearch.js /opt/notes2web cp toc_search.js /opt/notes2web cp permalink.js /opt/notes2web + chmod +x /usr/local/bin/notes2web.py uninstall: rm -rf /usr/local/bin/notes2web.py /usr/local/bin/n2w_add_uuid.py /opt/notes2web