File tree 1 file changed +17
-4
lines changed
1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
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
+
3
16
rm -f /usr/bin/azote
4
17
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
9
22
10
23
python -m build --wheel --no-isolation
11
24
python -m installer dist/* .whl
You can’t perform that action at this time.
0 commit comments