-
Notifications
You must be signed in to change notification settings - Fork 17
Developer Guide
This document is not guaranteed to work.
Music Caster is written in Python 3.10.1+ 64-bit. If you want to build the Updater.exe
that's found in Portable.zip
, you'll need to install Golang. If you want to build the installer, you will need to install Inno Setup.
Building on Windows 32-bit version is not supported but it is possible; You will need to use Python 3.8.X 32-bit and the v4-py3.8.9-32-bit
branch. If you want the latest features, you will need to perform a merge and solve the ensuing merge conflict yourself!
Ensure
- Python is added to the
PATH
environment variable (it'll be a checkbox in the installer) -
pip
is installed
I don't think you need to do this anymore.
# pyaudio
sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 -y
pip install -r requirements.txt
# if app indicator not working
sudo apt install gir1.2-appindicator3-0.1 -y
After installation, check if these two options were selected by opening a new terminal (cmd
or wt
on Windows) window and enter the command pip
and then python --version
. If you get any "is not recognized" errors, you did not add Python and pip to the PATH
environment variable.
- Clone this repository or download the master branch and extract.
- Go into the
music-caster
directory. - Open up a command prompt within this directory. The way I do this on Windows is
Ctrl + L
->wt
-><<Enter>>
. Typecmd
instead ofwt
if you don't have Windows Terminal installed. - Install dependencies by running either
build --dry
orcd src && pip install -r requirements.txt --user
- To run the program with Python, you can use
py music_caster.py
. Supply-m
or setDEBUG: true
insettings.json
if you don't want the GUI to open up on every run.
- Use
./build.cmd --skip-tests
in the terminal to build Music Caster, a portable version, and an installer (setup.exe)
You will most likely see "WARNING: could not create an installer" when building. You can ignore this if you don't plan to create the setup installer yourself. If you want to create the setup installer, you will need to install and make sure that its installation folder is added to PATH before building again (will need to restart the terminal or IDE you were using).
- PyInstaller issues?
pip freeze > uninstall.txt
- Run this command twice:
pip uninstall -r uninstall.txt
pip install requirements.txt --user
- Delete
uninstall.txt
- Use
patchelf --set-rpath ./ libvlc.so
for dynamic loading problems on Linux - Something to note is that Chromecasts do not support IPv6 links.