updated readme
This commit is contained in:
parent
046658fa8e
commit
54f2352a9e
@ -192,6 +192,14 @@ cache.get_tracks_without_filepath()
|
|||||||
|
|
||||||
the id always is a musicbrainz id and distinct for every track.
|
the id always is a musicbrainz id and distinct for every track.
|
||||||
|
|
||||||
|
**clearing the cache** is easy too.
|
||||||
|
|
||||||
|
```
|
||||||
|
from music_kraken import clear_cache
|
||||||
|
|
||||||
|
clear_cache()
|
||||||
|
```
|
||||||
|
|
||||||
### Setting the Target
|
### Setting the Target
|
||||||
|
|
||||||
By default the music downloader doesn't know where to save the music file, if downloaded. To set those variables (the directory to save the file in and the filepath), it is enough to run one single command:
|
By default the music downloader doesn't know where to save the music file, if downloaded. To set those variables (the directory to save the file in and the filepath), it is enough to run one single command:
|
||||||
|
11
build.sh
11
build.sh
@ -1,13 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
test=true
|
test=true
|
||||||
|
|
||||||
|
|
||||||
rm /tmp/music-downloader/*.db
|
rm /tmp/music-downloader/*.db
|
||||||
rm /tmp/music-downloader/*.sql
|
rm /tmp/music-downloader/*.sql
|
||||||
|
|
||||||
version=$(cut -d@ -f1 version)
|
version=$(cut -d@ -f1 version)
|
||||||
echo version: $version
|
echo version: $version
|
||||||
|
|
||||||
|
git add .
|
||||||
|
git commit -am "ready for build $version"
|
||||||
|
git push
|
||||||
|
|
||||||
sudo python3 -m pip install -U twine wheel setuptools
|
sudo python3 -m pip install -U twine wheel setuptools
|
||||||
|
|
||||||
python3 setup.py sdist bdist_wheel
|
python3 setup.py sdist bdist_wheel
|
||||||
@ -25,6 +28,12 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
twine upload dist/music_kraken*
|
twine upload dist/music_kraken*
|
||||||
|
|
||||||
|
echo "compiling............"
|
||||||
|
mkdir -p dist/build_files
|
||||||
|
mkdir -p dist/compiled
|
||||||
|
|
||||||
|
pyinstaller --onefile src/music_kraken_cli.py --specpath dist/build_files --workpath dist/build_files --distpath dist/compiled
|
||||||
exit
|
exit
|
||||||
|
|
||||||
# https://packaging.python.org/en/latest/tutorials/packaging-projects/
|
# https://packaging.python.org/en/latest/tutorials/packaging-projects/
|
||||||
|
Loading…
Reference in New Issue
Block a user