2021-04-30 20:55:13 +00:00
|
|
|
install:
|
2023-02-06 14:39:10 +00:00
|
|
|
cp n2w_add_uuid.py /usr/local/bin
|
2023-02-06 14:42:37 +00:00
|
|
|
sed "s/N2W_COMMIT = \"\"/N2W_COMMIT = \"$$(git rev-parse --short HEAD)\"/" notes2web.py > /usr/local/bin/notes2web.py
|
2021-08-19 13:44:41 +00:00
|
|
|
pip3 install -r requirements.txt
|
2021-04-30 20:57:49 +00:00
|
|
|
mkdir -p /opt/notes2web
|
|
|
|
cp -r templates /opt/notes2web
|
|
|
|
cp styles.css /opt/notes2web
|
2021-08-19 13:43:42 +00:00
|
|
|
cp fuse.js /opt/notes2web
|
|
|
|
cp search.js /opt/notes2web
|
2021-12-22 21:16:09 +00:00
|
|
|
cp toc_search.js /opt/notes2web
|
2022-03-08 11:56:59 +00:00
|
|
|
cp permalink.js /opt/notes2web
|
2021-04-30 20:55:13 +00:00
|
|
|
|
2021-04-30 21:01:08 +00:00
|
|
|
uninstall:
|
2022-03-02 02:19:04 +00:00
|
|
|
rm -rf /usr/local/bin/notes2web.py /usr/local/bin/n2w_add_uuid.py /opt/notes2web
|