Skip to content

Commit 160e7c0

Browse files
committedSep 25, 2024
clear installation
1 parent b04e2a6 commit 160e7c0

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed
 

‎install.sh

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
#!/usr/bin/env bash
22

3+
PROGRAM_NAME="azote"
4+
MODULE_NAME="azote"
5+
SITE_PACKAGES="$(python3 -c "import sysconfig; print(sysconfig.get_paths()['purelib'])")"
6+
PATTERN="$SITE_PACKAGES/$MODULE_NAME*"
7+
8+
# Remove from site_packages
9+
for path in $PATTERN; do
10+
if [ -e "$path" ]; then
11+
echo "Removing $path"
12+
rm -r "$path"
13+
fi
14+
done
15+
316
rm -f /usr/bin/azote
417

5-
install -Dm 644 -t /usr/share/pixmaps dist/azote.svg
6-
install -Dm 644 -t /usr/share/azote dist/indicator*.png
7-
install -Dm 644 -t /usr/share/applications dist/azote.desktop
8-
install -Dm 644 -t /usr/share/doc/azote README.md
18+
install -Dm 644 -t /usr/share/pixmaps "dist/$PROGRAM_NAME.svg"
19+
install -Dm 644 -t "/usr/share/$PROGRAM_NAME" dist/indicator*.png
20+
install -Dm 644 -t /usr/share/applications "dist/$PROGRAM_NAME.desktop"
21+
install -Dm 644 -t "/usr/share/doc/$PROGRAM_NAME" README.md
922

1023
python -m build --wheel --no-isolation
1124
python -m installer dist/*.whl

0 commit comments

Comments
 (0)
Please sign in to comment.