Child: [9eb8e4] (diff)

Download this file

mkspotiauth.sh    24 lines (18 with data), 557 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# Create a zip for a standalone spotify auth-token creation utility
fatal()
{
echo $*
exit 1
}
test -f spotiauthinit.py || fatal "Must run in the spotify directory"
cd ..
cp -rp spotify /tmp/upmpdcli-spotify-authinit
cd /tmp
rm -rf upmpdcli-spotify-authinit/__pycache__ \
upmpdcli-spotify-authinit/spotipy/__pycache__
zip -rv upmpdcli-spotify-authinit.zip \
upmpdcli-spotify-authinit/spotiauthinit.py \
upmpdcli-spotify-authinit/upmspotid.py \
upmpdcli-spotify-authinit/spotipy
echo "Created /tmp/upmpdcli-spotify-authinit.zip"