-
Notifications
You must be signed in to change notification settings - Fork 17
Developer Guide
Although Music Caster was made using 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 32-bit version, you'll need Python 3.8 32-bit and will need to use the v4-py3.8.9-32-bit
branch.
This document may be outdated and is not guaranteed to work.
Ensure
- Python is added to the
PATH
environment variable (it'll be a checkbox in the installer) -
pip
is installed
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.10 -y
sudo apt install python3.10-distutils -y
sudo apt install python3-pip -y
sudo apt-get install python3-dev
cd src && python3.10 -m pip install -r requirements.txt
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 --no-install
in the terminal (pwsh/cmd) 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 Inno Setup 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
- 3.10.0 (not 3.10.1+) issue: https://github.com/pyinstaller/pyinstaller/issues/6301#issuecomment-974491206
Something to note is that Chromecasts do not support IPv6 links.